Skip to content

Commit 832f166

Browse files
authored
Move UseMicrosoftTestingPlatformRunner to Directory.Build.props (#2619)
1 parent fac0e71 commit 832f166

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

Directory.Build.props

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,13 @@
199199
IL3050,IL3051,IL3052,IL3053,IL3054,IL3055,IL3056,
200200
RS2007
201201
</WarningsAsErrors>
202+
203+
<!--
204+
Once the repo moves to .NET 10 SDK, TestingPlatformDotnetTestSupport should be
205+
replaced by dotnet.config that opts in the new dotnet test experience for Microsoft.Testing.Platform
206+
-->
207+
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
208+
<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>
202209
</PropertyGroup>
203210

204211
<!-- Required for NuGet Source Link -->

src/CommunityToolkit.Maui.Analyzers.UnitTests/CommunityToolkit.Maui.Analyzers.UnitTests.csproj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99

1010
<OutputType>Exe</OutputType>
1111
<RootNamespace>CommunityToolkit.Maui.Analyzers.UnitTests</RootNamespace>
12-
13-
<TestingPlatformDotnetTestSupport>false</TestingPlatformDotnetTestSupport>
14-
<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>
1512
</PropertyGroup>
1613

1714
<ItemGroup>
@@ -21,7 +18,7 @@
2118
<ItemGroup>
2219
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Analyzer.Testing" Version="1.1.2" />
2320
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeFix.Testing" Version="1.1.2" />
24-
<PackageReference Include="xunit.v3" Version="1.1.0" />
21+
<PackageReference Include="xunit.v3" Version="2.0.0" />
2522
<PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" Version="17.13.1" />
2623
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.12.0" />
2724
</ItemGroup>

src/CommunityToolkit.Maui.UnitTests/CommunityToolkit.Maui.UnitTests.csproj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,13 @@
77

88
<OutputType>Exe</OutputType>
99
<RootNamespace>CommunityToolkit.Maui.UnitTests</RootNamespace>
10-
11-
<TestingPlatformDotnetTestSupport>false</TestingPlatformDotnetTestSupport>
12-
<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>
1310
</PropertyGroup>
1411

1512
<ItemGroup>
1613
<PackageReference Include="FluentAssertions" Version="8.0.1" />
1714
<PackageReference Include="FluentAssertions.Analyzers" Version="0.34.1" />
1815
<PackageReference Include="Nito.AsyncEx" Version="5.1.2" />
19-
<PackageReference Include="xunit.v3" Version="1.1.0" />
16+
<PackageReference Include="xunit.v3" Version="2.0.0" />
2017
<PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" Version="17.13.1" />
2118
</ItemGroup>
2219

0 commit comments

Comments
 (0)