Skip to content

Commit 0bade43

Browse files
authored
MSBuild Condition Fixes (#8817)
1 parent 490fab9 commit 0bade43

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Package/MSTest.Sdk/Sdk/Runner/NativeAOT.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@
7171

7272
<!-- Support for -p:AotMsCodeCoverageInstrumentation="true" during dotnet publish for native aot -->
7373
<PackageReference Include="Microsoft.CodeCoverage.MSBuild" Sdk="MSTest"
74-
Condition=" '$(EnableMicrosoftTestingExtensionsCodeCoverage)' == 'true' and $(PublishAot) == 'true' ">
74+
Condition=" '$(EnableMicrosoftTestingExtensionsCodeCoverage)' == 'true' and '$(PublishAot)' == 'true' ">
7575
<Version Condition=" '$(ManagePackageVersionsCentrally)' != 'true' ">$(MicrosoftTestingExtensionsCodeCoverageVersion)</Version>
7676
</PackageReference>
7777
<PackageVersion Include="Microsoft.CodeCoverage.MSBuild" Version="$(MicrosoftTestingExtensionsCodeCoverageVersion)"
78-
Condition=" '$(EnableMicrosoftTestingExtensionsCodeCoverage)' == 'true' and $(PublishAot) == 'true' and '$(ManagePackageVersionsCentrally)' == 'true' " />
78+
Condition=" '$(EnableMicrosoftTestingExtensionsCodeCoverage)' == 'true' and '$(PublishAot)' == 'true' and '$(ManagePackageVersionsCentrally)' == 'true' " />
7979
</ItemGroup>
8080

8181
</Project>

src/Platform/Microsoft.Testing.Platform/buildMultiTargeting/Microsoft.Testing.Platform.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
<Target Name="_MTPAddArguments" BeforeTargets="ComputeRunArguments">
2525
<PropertyGroup>
26-
<RunArguments Condition="'(TestingPlatformCommandLineArguments)' != ''">$(RunArguments) $(TestingPlatformCommandLineArguments)</RunArguments>
26+
<RunArguments Condition=" '$(TestingPlatformCommandLineArguments)' != '' ">$(RunArguments) $(TestingPlatformCommandLineArguments)</RunArguments>
2727
</PropertyGroup>
2828
</Target>
2929

0 commit comments

Comments
 (0)