mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
Avoid using the Test SDK for Arm64 builds (#32481)
This commit is contained in:
@@ -45,7 +45,19 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<!-- Add ability to run tests via "msbuild /t:Test" -->
|
<!-- Add ability to run tests via "msbuild /t:Test" -->
|
||||||
|
<!--
|
||||||
|
Workaround an MSBuild bug where Microsoft.Common.Test.targets is missing from the Arm64 installation.
|
||||||
|
See: https://github.com/dotnet/msbuild/pull/9984
|
||||||
|
NB 1: This means that using "/t:Test" is not supported for Arm64 builds and tests will need to be run in an alternate way,
|
||||||
|
eg running tests in VS or invoking vstest.console directly.
|
||||||
|
NB 2: <Sdk> elements do not support conditions, so this is also being worked around.
|
||||||
|
Once the change referenced above is fixed, the ImportGroup below can be replaced with:
|
||||||
<Sdk Name="Microsoft.Build.RunVSTest" Version="1.0.319" />
|
<Sdk Name="Microsoft.Build.RunVSTest" Version="1.0.319" />
|
||||||
|
-->
|
||||||
|
<ImportGroup Condition="'$(PROCESSOR_ARCHITECTURE)' != 'ARM64'">
|
||||||
|
<Import Project="Sdk.props" Sdk="Microsoft.Build.RunVSTest" Version="1.0.319" />
|
||||||
|
<Import Project="Sdk.targets" Sdk="Microsoft.Build.RunVSTest" Version="1.0.319" />
|
||||||
|
</ImportGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<VSTestLogger>trx</VSTestLogger>
|
<VSTestLogger>trx</VSTestLogger>
|
||||||
<!--
|
<!--
|
||||||
|
|||||||
Reference in New Issue
Block a user