-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Testing.props
25 lines (20 loc) · 950 Bytes
/
Directory.Testing.props
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
<Project>
<PropertyGroup Condition="'$(Configuration)'!='Release'">
<EnableMSTestRunner>true</EnableMSTestRunner>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<GenerateProgramFile>false</GenerateProgramFile>
<IsTestProject>false</IsTestProject>
</PropertyGroup>
<ItemGroup Condition="'$(Configuration)'!='Release'">
<PackageReference Include="MsTest" PrivateAssets="all"/>
<PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" PrivateAssets="all"/>
<PackageReference Include="Microsoft.CodeCoverage.MSBuild" PrivateAssets="all"/>
<ProjectReference Include="../Security.Testing/Security.Testing.csproj" PrivateAssets="all"/>
</ItemGroup>
<ItemGroup Condition="'$(Configuration)'=='Release'">
<Compile Remove="**/*.Tests.cs" />
<Compile Remove="@(RemoveExistingMicrosoftNETTestSdkProgram)" />
</ItemGroup>
</Project>