-
Notifications
You must be signed in to change notification settings - Fork 2
/
Directory.Build.props
41 lines (32 loc) · 1.43 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
<Project>
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<MSBuildWarningsAsMessages>SYSLIB1006;SYSLIB1037</MSBuildWarningsAsMessages>
<PublishTrimmed>true</PublishTrimmed>
<IsTrimmable>true</IsTrimmable>
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
<!-- full breaks OpenTelemetry. Additional 20MB at least -->
<TrimMode>partial</TrimMode>
<SuppressTrimAnalysisWarnings>false</SuppressTrimAnalysisWarnings>
<TrimmerSingleWarn>false</TrimmerSingleWarn>
<TrimmerRemoveSymbols>true</TrimmerRemoveSymbols>
<!-- Additional 30MB at least -->
<PublishReadyToRun>true</PublishReadyToRun>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<AnalysisMode>latest-Recommended</AnalysisMode>
<AnalysisLevel>latest</AnalysisLevel>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
</PropertyGroup>
<ItemGroup>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute">
<_Parameter1>P3D.Legacy.Tests</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
<ItemGroup Condition="$(ManagePackageVersionsCentrally) == 'true'">
<PackageReference Include="IDisposableAnalyzers" />
<PackageReference Include="Meziantou.Analyzer" />
<PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" />
<PackageReference Include="ReflectionAnalyzers" />
</ItemGroup>
</Project>