-
Notifications
You must be signed in to change notification settings - Fork 750
Expand file tree
/
Copy pathtest.targets
More file actions
31 lines (25 loc) · 1.26 KB
/
test.targets
File metadata and controls
31 lines (25 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Shared test project template -->
<PropertyGroup>
<OutputType>Exe</OutputType>
<NoWarn>$(NoWarn);CS1701;xUnit1012;xUnit1014;xUnit1051;xUnit2000;xUnit2009;xUnit2013;xUnit2031</NoWarn>
<WarningsAsErrors>$(WarningsAsErrors);xUnit2024</WarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="xunit.runner.visualstudio" />
<PackageReference Include="xunit.v3" />
<PackageReference Include="Moq" />
<PackageReference Include="AwesomeAssertions" />
</ItemGroup>
<PropertyGroup>
<VSTestResultsDirectory>$(RepositoryRootDirectory).test\TestResults\</VSTestResultsDirectory>
<RunSettingsFilePath Condition="'$(RunSettingsFilePath)' == '' AND '$(BuildingInsideVisualStudio)' != 'true'">$(MSBuildThisFileDirectory)xunit.runsettings</RunSettingsFilePath>
</PropertyGroup>
<!-- Workaround for test projects not automatically creating binding redirects -->
<PropertyGroup>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
</PropertyGroup>
</Project>