34 lines
1.3 KiB
XML
34 lines
1.3 KiB
XML
<Project>
|
|
<Import Project="..\Directory.Build.props" />
|
|
|
|
<PropertyGroup>
|
|
<!-- only run .NET Framework tests on Windows -->
|
|
<TargetFrameworks>net7.0;net6.0</TargetFrameworks>
|
|
<TargetFrameworks Condition="'$(OS)' == 'Windows_NT'">$(TargetFrameworks);net462</TargetFrameworks>
|
|
|
|
<!-- Hide warnings for EOL .NET Core targets (e.g. netcoreapp3.0) -->
|
|
<CheckEolTargetFramework>false</CheckEolTargetFramework>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="FluentAssertions" />
|
|
<PackageReference Include="Microsoft.NET.Test.Sdk" />
|
|
<PackageReference Include="Moq" />
|
|
<PackageReference Include="xunit" />
|
|
<PackageReference Include="xunit.runner.visualstudio">
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
<PrivateAssets>all</PrivateAssets>
|
|
</PackageReference>
|
|
</ItemGroup>
|
|
|
|
<!-- StyleCop -->
|
|
<ItemGroup>
|
|
<Compile Include="$(MSBuildThisFileDirectory)GlobalSuppressions.cs" Link="GlobalSuppressions.test.cs" />
|
|
</ItemGroup>
|
|
|
|
<!-- Strong name conditional to limit it only to required projects -->
|
|
<ItemGroup Condition="$(TargetFramework.StartsWith('net4')) and '$(AddTestStrongNameAssemblyKeyOnNetFramework)' == 'true'">
|
|
<Compile Include="$(MSBuildThisFileDirectory)AssemblyInfo.cs" Link="AssemblyInfo.StrongName.cs" />
|
|
</ItemGroup>
|
|
</Project>
|