-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDirectory.Build.props
62 lines (58 loc) · 3.26 KB
/
Directory.Build.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
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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="latest" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Useful defaults -->
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<LangVersion>preview</LangVersion>
<Nullable>enable</Nullable>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<!-- <CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled> -->
</PropertyGroup>
<!-- Disable some warnings -->
<PropertyGroup>
<!--
NU1901-NU1904: Package 'X' has a known vulnerability...
IL2026: Using member 'AddFusion' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming...
BL0007: Component parameter '...' should be auto property
VSTHRD200: Missing "Async" suffix warning
NETSDK1206: Found version-specific or distribution-specific runtime identifier(s): alpine-arm, alpine-arm64, alpine-x64. Affected libraries: SQLitePCLRaw.lib.e_sqlite3. In .NET 8.0 and higher, assets for version-specific and distribution-specific runtime identifiers will not be found by default. See https://aka.ms/dotnet/rid-usage for details.
OCL0039: The initial value of the property 'Samples.RpcBenchmark.ClientCommand.Workers' will not be included in the usage help because it is not a literal expression, enum value, constant, or property. Consider changing the initializer, or use CommandLineArgumentAttribute.DefaultValue as an alternative. https://www.ookii.org/Link/CommandLineGeneratorError#ocl0039
-->
<NoWarn>$(NoWarn);NU1901;NU1902;NU1903;NU1904</NoWarn>
<NoWarn>$(NoWarn);IL2026;BL0007;VSTHRD200;NETSDK1206;OCL0039</NoWarn>
</PropertyGroup>
<PropertyGroup>
<UseFusion>true</UseFusion>
<UseFusion Condition="$(Project.Contains('HelloRpc'))">false</UseFusion>
</PropertyGroup>
<!-- Global usings -->
<ItemGroup>
<Using Include="System" />
<Using Include="System.Collections" />
<Using Include="System.Collections.Immutable" />
<Using Include="System.Collections.Concurrent" />
<Using Include="System.Collections.Generic" />
<Using Include="System.Linq" />
<Using Include="System.Reactive" /> <!-- Mainly for Unit type -->
<Using Include="System.Text" />
<Using Include="System.Threading" />
<Using Include="System.Threading.Tasks" />
<Using Include="System.Threading.Channels" />
<Using Include="ActualLab" />
<Using Include="ActualLab.Async" />
<Using Include="ActualLab.Collections" />
<Using Condition="$(UseFusion)" Include="ActualLab.CommandR" />
<Using Condition="$(UseFusion)" Include="ActualLab.CommandR.Configuration" />
<Using Condition="$(UseFusion)" Include="ActualLab.CommandR.Commands" />
<Using Condition="$(UseFusion)" Include="ActualLab.Fusion" />
<Using Condition="$(UseFusion)" Include="ActualLab.Fusion.Operations" />
<Using Include="ActualLab.DependencyInjection" />
<Using Include="ActualLab.Reflection" />
<Using Include="ActualLab.Serialization" />
<Using Include="ActualLab.Text" />
<Using Include="ActualLab.Time" />
<Using Include="Microsoft.Extensions.DependencyInjection" />
<Using Include="Microsoft.Extensions.Logging" />
<Using Include="Microsoft.Extensions.Logging.Abstractions" />
</ItemGroup>
</Project>