-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
82 lines (72 loc) · 3.58 KB
/
Directory.Build.props
File metadata and controls
82 lines (72 loc) · 3.58 KB
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
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<!--
CS1591: Missing XML comment for publicly visible type or member
SA0001: XML comment analysis disabled due to project configuration (StyleCop)
-->
<NoWarn>$(NoWarn);CS1591;SA0001</NoWarn>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)orbit.net.snk</AssemblyOriginatorKeyFile>
<!-- Do not package by default to avoid accidental publishing -->
<IsPackable>false</IsPackable>
</PropertyGroup>
<PropertyGroup>
<!-- NuGet Packaging -->
<!-- Each project has it's own Version -->
<PackageVersion>$(Version)</PackageVersion>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Company>Synadia Communications, Inc.</Company>
<Authors>Synadia</Authors>
<Copyright>© Synadia Communications, Inc. All rights reserved.</Copyright>
<PackageProjectUrl>https://github.com/synadia-io/orbit.net</PackageProjectUrl>
<RepositoryUrl>$(PackageProjectUrl)</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PackageIcon>Icon.png</PackageIcon>
<!-- PackageReadmeFile is defined in each project -->
</PropertyGroup>
<ItemGroup>
<!-- Each project has it's own PACKAGE.md -->
<None Include="$(MSBuildThisFileDirectory)LICENSE" Pack="true" PackagePath=""/>
<None Include="$(MSBuildThisFileDirectory)Icon.png" Pack="true" PackagePath=""/>
</ItemGroup>
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0' OR '$(TargetFramework)' == 'netstandard2.1'">
<IsTrimmable>false</IsTrimmable>
<!-- CS8774: Member must have a non-null value when exiting; nullable annotations not fully supported in netstandard -->
<NoWarn>$(NoWarn);CS8774</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<!-- CS8604: Possible null reference argument; nullable annotations not fully supported in netstandard2.0 -->
<NoWarn>$(NoWarn);CS8604</NoWarn>
</PropertyGroup>
<!-- there are a few warnings with trimming under net10 -->
<!-- <PropertyGroup Condition="'$(TargetFramework)' == 'net8.0' OR '$(TargetFramework)' == 'net9.0' OR '$(TargetFramework)' == 'net10.0'"> -->
<PropertyGroup Condition="'$(TargetFramework)' == 'net8.0' OR '$(TargetFramework)' == 'net9.0'">
<IsTrimmable>true</IsTrimmable>
<isAotCompatible>true</isAotCompatible>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Stylecop.Analyzers">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
<!-- Dependencies for netstandard only -->
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0' OR '$(TargetFramework)' == 'netstandard2.1'">
<!-- <PackageReference Include="System.Text.Json"/>-->
<PackageReference Include="System.Threading.Channels"/>
<PackageReference Include="System.Diagnostics.DiagnosticSource"/>
<PackageReference Include="PolySharp">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
<!-- Dependencies for netstandard2.0 only -->
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="Microsoft.Bcl.Memory" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" />
</ItemGroup>
</Project>