|
1 | 1 | <Project> |
| 2 | + <Import |
| 3 | + Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" |
| 4 | + Condition="Exists($([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../')))" |
| 5 | + /> |
| 6 | + |
2 | 7 | <PropertyGroup> |
3 | 8 | <IsPackable>false</IsPackable> |
4 | 9 | <NoWarn>CA1812</NoWarn> |
| 10 | + <OutputType>Exe</OutputType> |
5 | 11 | </PropertyGroup> |
6 | 12 |
|
7 | 13 | <PropertyGroup> |
8 | 14 | <TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport> |
9 | 15 | <UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner> |
10 | | - <!-- |
11 | | - The first three parameters must be here in this file on a single line, otherwise the cmdline parsing will fail. |
12 | | - --> |
13 | | - <TestingPlatformCommandLineArguments> |
14 | | - $(TestingPlatformCommandLineArguments) |
15 | | - --report-ctrf --coverage --ignore-exit-code 8 |
16 | | - --results-directory $(MSBuildThisFileDirectory)/../TestResults |
17 | | - --coverage-output-format cobertura |
18 | | - --coverage-settings $(MSBuildThisFileDirectory)/coverage.xml |
19 | | - --report-ctrf-filename $(MSBuildProjectName)-$([System.DateTime]::Now.ToString("HH-mm-ss")).json |
20 | | - --coverage-output $(MSBuildProjectName)-$([System.DateTime]::Now.ToString("HH-mm-ss")).xml |
21 | | - </TestingPlatformCommandLineArguments> |
| 16 | + <!-- All arguments must be on a single line to avoid parsing issues with newlines --> |
| 17 | + <!-- csharpier-ignore --> |
| 18 | + <TestingPlatformCommandLineArguments>$(TestingPlatformCommandLineArguments) --report-ctrf --coverage --ignore-exit-code 8 --results-directory $(MSBuildThisFileDirectory)/../TestResults --coverage-output-format cobertura --coverage-settings $(MSBuildThisFileDirectory)/coverage.xml --report-ctrf-filename $(MSBuildProjectName)-$([System.DateTime]::Now.ToString("HH-mm-ss")).json --coverage-output $(MSBuildProjectName)-$([System.DateTime]::Now.ToString("HH-mm-ss")).xml</TestingPlatformCommandLineArguments> |
22 | 19 | </PropertyGroup> |
23 | 20 |
|
24 | 21 | <ItemGroup> |
25 | 22 | <PackageReference Include="FluentAssertions" /> |
26 | | - |
27 | | - <PackageReference Include="NSubstitute" /> |
28 | | - <PackageReference Include="Microsoft.Testing.Platform" /> |
29 | 23 | <PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" /> |
30 | | - <PackageReference Include="Microsoft.NET.Test.Sdk" /> |
| 24 | + <PackageReference Include="NSubstitute" /> |
31 | 25 |
|
32 | | - <PackageReference Include="xunit.v3" /> |
33 | 26 | <PackageReference Include="xunit.analyzers" /> |
| 27 | + <PackageReference Include="xunit.v3.mtp-v2" /> |
34 | 28 | </ItemGroup> |
35 | | - |
36 | | - <Import |
37 | | - Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" |
38 | | - Condition="Exists($([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../')))" |
39 | | - /> |
40 | 29 | </Project> |
0 commit comments