Skip to content

Commit 4aff6ec

Browse files
committed
fix cond
1 parent 04f181c commit 4aff6ec

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Aspire.ProjectTemplates/templates/aspire-starter/9.2/Aspire-StarterApplication.1.Tests/Aspire-StarterApplication.1.Tests.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
<IsPackable>false</IsPackable>
88
<IsTestProject>true</IsTestProject>
99
<!--#if (TestFrameworkIsXUnit) -->
10-
<UseMicrosoftTestingPlatformRunner Condition=" '$(XUnitVersion)' != 'v2' ">true</UseMicrosoftTestingPlatformRunner>
11-
<TestingPlatformDotnetTestSupport Condition=" '$(XUnitVersion)' != 'v2' ">true</TestingPlatformDotnetTestSupport>
10+
<UseMicrosoftTestingPlatformRunner Condition=" $(XUnitVersion) == 'v3mtp' ">true</UseMicrosoftTestingPlatformRunner>
11+
<TestingPlatformDotnetTestSupport Condition=" $(XUnitVersion) == 'v3mtp' ">true</TestingPlatformDotnetTestSupport>
1212
<!--#endif-->
1313
</PropertyGroup>
1414

src/Aspire.ProjectTemplates/templates/aspire-xunit/9.2/Aspire.Tests.1.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<Nullable>enable</Nullable>
77
<IsPackable>false</IsPackable>
88
<IsTestProject>true</IsTestProject>
9-
<UseMicrosoftTestingPlatformRunner Condition=" '$(XUnitVersion)' != 'v2' ">true</UseMicrosoftTestingPlatformRunner>
10-
<TestingPlatformDotnetTestSupport Condition=" '$(XUnitVersion)' != 'v2' ">true</TestingPlatformDotnetTestSupport>
9+
<UseMicrosoftTestingPlatformRunner Condition=" $(XUnitVersion) == 'v3mtp' ">true</UseMicrosoftTestingPlatformRunner>
10+
<TestingPlatformDotnetTestSupport Condition=" $(XUnitVersion) == 'v3mtp' ">true</TestingPlatformDotnetTestSupport>
1111
</PropertyGroup>
1212

1313
<ItemGroup>

0 commit comments

Comments
 (0)