|
1 | | -<Project> |
2 | | - |
3 | | - <PropertyGroup> |
4 | | - <IsPackable>false</IsPackable> |
5 | | - <GeneratePackageOnBuild>false</GeneratePackageOnBuild> |
6 | | - <NoWarn>$(NoWarn);NU1902;NU1903;xUnit1042</NoWarn> |
7 | | - <NetTestSdkVersion>17.11.1</NetTestSdkVersion> |
8 | | - <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> |
9 | | - |
10 | | - <TestNetStandard20 Condition="'$(TargetFramework)'=='net481'">true</TestNetStandard20> |
11 | | - <DefineConstants Condition="'$(TestNetStandard20)'=='true'">$(DefineConstants);TEST_NETSTANDARD2_0</DefineConstants> |
12 | | - <TestNetStandard21 Condition="'$(TargetFramework)'=='net7.0'">true</TestNetStandard21> |
13 | | - <DefineConstants Condition="'$(TestNetStandard21)'=='true'">$(DefineConstants);TEST_NETSTANDARD2_1</DefineConstants> |
14 | | - </PropertyGroup> |
15 | | - |
16 | | - <PropertyGroup Condition="'$(TargetFramework)'=='netcoreapp2.1'"> |
17 | | - <NetTestSdkVersion>17.3.3</NetTestSdkVersion> |
18 | | - </PropertyGroup> |
19 | | - |
20 | | - <ItemGroup> |
21 | | - <Using Include="FluentAssertions" /> |
22 | | - <Using Include="NSubstitute" /> |
23 | | - <Using Include="Xunit" /> |
24 | | - </ItemGroup> |
25 | | - |
26 | | - <ItemGroup> |
27 | | - <PackageReference Include="FluentAssertions" Version="6.12.1" /> |
28 | | - <PackageReference Include="NSubstitute" Version="5.1.0" /> |
29 | | - <PackageReference Include="xunit" Version="2.9.2" /> |
30 | | - </ItemGroup> |
31 | | - |
32 | | - <ItemGroup Condition="'$(IsTestProject)'=='true'"> |
33 | | - <PackageReference Include="Microsoft.NET.Test.Sdk" Version="$(NetTestSdkVersion)" /> |
34 | | - <PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="$(NetTestSdkVersion)" /> |
35 | | - <PackageReference Include="xunit.runner.visualstudio" Version="2.8.2"> |
36 | | - <PrivateAssets>all</PrivateAssets> |
37 | | - <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
38 | | - </PackageReference> |
39 | | - </ItemGroup> |
40 | | - |
41 | | - <!--https://docs.microsoft.com/en-us/visualstudio/msbuild/customize-your-build?view=vs-2019#use-case-multi-level-merging --> |
42 | | - <Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.targets', '$(MSBuildThisFileDirectory)../'))" /> |
43 | | - |
44 | | -</Project> |
| 1 | +<Project> |
| 2 | + |
| 3 | + <PropertyGroup> |
| 4 | + <IsPackable>false</IsPackable> |
| 5 | + <GeneratePackageOnBuild>false</GeneratePackageOnBuild> |
| 6 | + <NoWarn>$(NoWarn);NU1902;NU1903;xUnit1042</NoWarn> |
| 7 | + <NetTestSdkVersion>17.11.1</NetTestSdkVersion> |
| 8 | + <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> |
| 9 | + |
| 10 | + <TestNetStandard20 Condition="'$(TargetFramework)'=='net481'">true</TestNetStandard20> |
| 11 | + <DefineConstants Condition="'$(TestNetStandard20)'=='true'">$(DefineConstants);TEST_NETSTANDARD2_0</DefineConstants> |
| 12 | + <TestNetStandard21 Condition="'$(TargetFramework)'=='net7.0'">true</TestNetStandard21> |
| 13 | + <DefineConstants Condition="'$(TestNetStandard21)'=='true'">$(DefineConstants);TEST_NETSTANDARD2_1</DefineConstants> |
| 14 | + </PropertyGroup> |
| 15 | + |
| 16 | + <PropertyGroup Condition="'$(TargetFramework)'=='netcoreapp2.1'"> |
| 17 | + <NetTestSdkVersion>17.3.3</NetTestSdkVersion> |
| 18 | + </PropertyGroup> |
| 19 | + |
| 20 | + <ItemGroup> |
| 21 | + <Using Include="FluentAssertions" /> |
| 22 | + <Using Include="NSubstitute" /> |
| 23 | + <Using Include="Xunit" /> |
| 24 | + </ItemGroup> |
| 25 | + |
| 26 | + <ItemGroup> |
| 27 | + <PackageReference Include="FluentAssertions" Version="6.12.1" /> |
| 28 | + <PackageReference Include="NSubstitute" Version="5.3.0" /> |
| 29 | + <PackageReference Include="xunit" Version="2.9.2" /> |
| 30 | + </ItemGroup> |
| 31 | + |
| 32 | + <ItemGroup Condition="'$(IsTestProject)'=='true'"> |
| 33 | + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="$(NetTestSdkVersion)" /> |
| 34 | + <PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="$(NetTestSdkVersion)" /> |
| 35 | + <PackageReference Include="xunit.runner.visualstudio" Version="2.8.2"> |
| 36 | + <PrivateAssets>all</PrivateAssets> |
| 37 | + <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
| 38 | + </PackageReference> |
| 39 | + </ItemGroup> |
| 40 | + |
| 41 | + <!--https://docs.microsoft.com/en-us/visualstudio/msbuild/customize-your-build?view=vs-2019#use-case-multi-level-merging --> |
| 42 | + <Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.targets', '$(MSBuildThisFileDirectory)../'))" /> |
| 43 | + |
| 44 | +</Project> |
0 commit comments