-
-
Notifications
You must be signed in to change notification settings - Fork 986
/
Copy pathBenchmarkDotNet.Annotations.csproj
32 lines (31 loc) · 1.36 KB
/
BenchmarkDotNet.Annotations.csproj
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
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\build\common.props" />
<PropertyGroup>
<AssemblyTitle>Basic BenchmarkDotNet attributes that can be used to annotate your benchmarks</AssemblyTitle>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<NoWarn>$(NoWarn);1701;1702;1705;1591;3005;NU1702;CA1825</NoWarn>
<AssemblyName>BenchmarkDotNet.Annotations</AssemblyName>
<PackageId>BenchmarkDotNet.Annotations</PackageId>
<RootNamespace>BenchmarkDotNet</RootNamespace>
<!-- needed for docfx xref resolver -->
<ProduceReferenceAssembly>True</ProduceReferenceAssembly>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\BenchmarkDotNet\Helpers\CodeAnnotations.cs" Link="Attributes\CodeAnnotations.cs" />
</ItemGroup>
<Choose>
<When Condition="'$(IsFullPack)' == 'true'">
<!-- ProjectReference to ensure the nuget package has a dependency on BenchmarkDotNet.Weaver using the proper version. -->
<ItemGroup>
<ProjectReference Include="..\BenchmarkDotNet.Weaver\BenchmarkDotNet.Weaver.csproj" />
</ItemGroup>
</When>
<Otherwise>
<!-- PackageReference for transitive weaver dependency for ProjectReferences to this. -->
<ItemGroup>
<PackageReference Include="BenchmarkDotNet.Weaver" Version="$(Version)$(WeaverVersionSuffix)" />
</ItemGroup>
</Otherwise>
</Choose>
</Project>