forked from dotnet/performance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMicroBenchmarks.csproj
121 lines (109 loc) · 7.29 KB
/
MicroBenchmarks.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- Used by Python script to narrow down the specified target frameworks to test, and avoid downloading all supported SDKs -->
<TargetFrameworks>$(PERFLAB_TARGET_FRAMEWORKS)</TargetFrameworks>
<!-- Supported target frameworks -->
<TargetFrameworks Condition="'$(TargetFrameworks)' == '' AND '$(OS)' == 'Windows_NT'">net461;netcoreapp2.1;netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">netcoreapp2.1;netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
<NoWarn>$(NoWarn);CS8002</NoWarn>
<!-- Suppress binaryformatter obsolete warning -->
<NoWarn>$(NoWarn);SYSLIB0011</NoWarn>
<OutputType>Exe</OutputType>
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<EnableXlfLocalization>false</EnableXlfLocalization>
<IsARM Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture.ToString().StartsWith(`arm`, System.StringComparison.OrdinalIgnoreCase))'">true</IsARM>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Jil" Version="2.17.0" />
<PackageReference Include="MessagePack" Version="1.9.11" />
<PackageReference Include="MessagePackAnalyzer" Version="1.7.3.7" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="5.0.0-rc.1.20417.14" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.0-rc.1.20417.14" />
<PackageReference Include="Microsoft.Extensions.Http" Version="5.0.0-rc.1.20417.14" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="5.0.0-rc.1.20417.14" />
<PackageReference Include="Microsoft.Extensions.Logging.EventSource" Version="5.0.0-rc.1.20417.14" />
<PackageReference Include="Microsoft.Extensions.Primitives" Version="5.0.0-rc.1.20417.14" />
<PackageReference Include="protobuf-net" Version="2.4.0" />
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="5.0.0-rc.1.20417.14" />
<PackageReference Include="System.Drawing.Common" Version="5.0.0-rc.1.20417.14" />
<PackageReference Include="System.Formats.Cbor" Version="5.0.0-rc.1.20417.14" Condition="'$(TargetFramework)' == 'net5.0' or '$(TargetFramework)' == 'net6.0'" />
<PackageReference Include="System.IO.Pipelines" Version="5.0.0-rc.1.20417.14" />
<PackageReference Include="System.Memory" Version="4.5.4" />
<PackageReference Include="System.Numerics.Vectors" Version="4.5.0" />
<PackageReference Include="System.Runtime.Serialization.Formatters" Version="4.3.0" />
<PackageReference Include="System.Runtime.Serialization.Json" Version="4.3.0" />
<PackageReference Include="System.Threading.Channels" Version="5.0.0-rc.1.20417.14" />
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.4" />
<PackageReference Include="System.Xml.XmlSerializer" Version="4.3.0" />
<PackageReference Include="Utf8Json" Version="1.3.7" />
<!-- following two dependencies must point to version 4.3.0 or newer to make it possible to publish MicroBenchmarks.csproj -->
<PackageReference Include="Microsoft.Win32.Primitives" Version="4.3.0" />
<PackageReference Include="System.Net.Primitives" Version="4.3.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\harness\BenchmarkDotNet.Extensions\BenchmarkDotNet.Extensions.csproj" />
</ItemGroup>
<ItemGroup>
<None Update="runtime\BenchmarksGame\Inputs\*.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="libraries\System.Net.Http\*.pfx">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="libraries\System.IO.Compression\TestData\**">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="libraries\Common\*.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup Condition=" '$(TargetFrameworkIdentifier)' == '.NETFramework'">
<Compile Remove="libraries\System.IO.Compression\Brotli.cs" />
<Compile Remove="libraries\System.Net.Http\Perf.SocketsHttpHandler.cs" />
<Compile Remove="libraries\System.Net.Security\SslStreamTests.cs" />
<Compile Remove="libraries\System.Net.Sockets\Perf.Socket.SendReceive.cs" />
<Compile Remove="libraries\System.Numerics.Vectors\GenericVectorFromSpanConstructorTests.cs" />
<Compile Remove="libraries\System.Runtime\Perf.HashCode.cs" />
<Compile Remove="libraries\System.Security.Cryptography.Primitives\**" />
<Compile Remove="libraries\System.Security.Cryptography\Perf.Rfc2898DeriveBytes.cs" />
<Compile Remove="libraries\System.Text.Encodings.Web\**\*.cs" />
<Compile Remove="runtime\Math\Functions\Double\Acosh.cs" />
<Compile Remove="runtime\Math\Functions\Double\Asinh.cs" />
<Compile Remove="runtime\Math\Functions\Double\Atanh.cs" />
<Compile Remove="runtime\Math\Functions\Double\Cbrt.cs" />
<Compile Remove="runtime\Math\Functions\Single\**\*.cs" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFrameworkIdentifier)' == '.NETFramework' Or ('$(TargetFrameworkIdentifier)' == '.NETCoreApp' And '$(_TargetFrameworkVersionWithoutV)' < '3.1')">
<Compile Remove="runtime\Math\Functions\Double\CopySignDouble.cs" />
<Compile Remove="runtime\Math\Functions\Double\FusedMultiplyAdd.cs" />
<Compile Remove="runtime\Math\Functions\Double\ILogB.cs" />
<Compile Remove="runtime\Math\Functions\Double\Log2.cs" />
<Compile Remove="runtime\Math\Functions\Double\ScaleB.cs" />
<Compile Remove="runtime\Math\Functions\Single\CopySignSingle.cs" />
<Compile Remove="runtime\Math\Functions\Single\FusedMultiplyAdd.cs" />
<Compile Remove="runtime\Math\Functions\Single\ILogB.cs" />
<Compile Remove="runtime\Math\Functions\Single\Log2.cs" />
<Compile Remove="runtime\Math\Functions\Single\ScaleB.cs" />
<Compile Remove="libraries\System.Memory\SequenceReader.cs" />
<Compile Remove="libraries\System.Numerics.BitOperations\Perf_BitOperations.cs" />
<Compile Remove="libraries\System.Text.Json\**\*.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework' Or ('$(TargetFrameworkIdentifier)' == '.NETCoreApp' And '$(_TargetFrameworkVersionWithoutV)' < '3.1') OR '$(IsARM)' == 'true'">
<Compile Remove="runtime\PacketTracer\**\*.cs" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFrameworkIdentifier)' == '.NETFramework' Or ('$(TargetFrameworkIdentifier)' == '.NETCoreApp' And '$(_TargetFrameworkVersionWithoutV)' < '5.0')">
<Compile Remove="libraries\System.Text.Json\Serializer\ReadPreservedReferences.cs" />
<Compile Remove="libraries\System.Text.Json\Serializer\WritePreservedReferences.cs" />
<Compile Remove="libraries\System.Formats.Cbor\*.cs" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFrameworkIdentifier)' == '.NETFramework' Or ('$(TargetFrameworkIdentifier)' == '.NETCoreApp' And '$(_TargetFrameworkVersionWithoutV)' < '6.0')">
<Compile Remove="libraries\System.Collections\PriorityQueue\Perf_PriorityQueue.cs" />
</ItemGroup>
<ItemGroup>
<!-- Workaround https://github.com/dotnet/project-system/issues/935 -->
<None Include="**/*.cs" />
</ItemGroup>
</Project>