forked from wangkanai/wangkanai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.targets
38 lines (33 loc) · 1.23 KB
/
Directory.Build.targets
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
32
33
34
35
36
37
38
<Project>
<PropertyGroup Condition="$(MSBuildProjectName.Contains('Benchmark'))">
<OutputType>Exe</OutputType>
<Optimize>true</Optimize>
<IsPackable>false</IsPackable>
<SonarQubeExclude>true</SonarQubeExclude>
</PropertyGroup>
<ItemGroup Condition="$(MSBuildProjectName.Contains('Benchmark'))">
<PackageReference Include="BenchmarkDotNet"/>
</ItemGroup>
<PropertyGroup Condition="$(MSBuildProjectName.Contains('Tests'))">
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>
<ItemGroup Condition="$(MSBuildProjectName.Contains('Tests'))">
<Using Include="Xunit" />
</ItemGroup>
<!-- GitHub Source Link -->
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub"/>
</ItemGroup>
<!-- xUnit Tests-->
<ItemGroup Condition="$(MSBuildProjectName.Contains('Tests'))">
<PackageReference Include="Microsoft.AspNetCore.TestHost"/>
<PackageReference Include="Microsoft.NET.Test.Sdk"/>
<PackageReference Include="Moq"/>
<PackageReference Include="xunit"/>
<PackageReference Include="xunit.runner.visualstudio"/>
<PackageReference Include="coverlet.collector"/>
<PackageReference Include="coverlet.msbuild"/>
<PackageReference Include="FluentAssertions"/>
</ItemGroup>
</Project>