-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathDirectory.Build.props
88 lines (82 loc) · 4.16 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
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
<Project>
<PropertyGroup>
<Copyright>DNT Site $([System.DateTime]::UtcNow.ToString("yyyy.MM.dd.HH.mm"))</Copyright>
<LangVersion>latest</LangVersion>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<PropertyGroup>
<AnalysisLevel>latest-all</AnalysisLevel>
<AnalysisMode>All</AnalysisMode>
<CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErrors>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);</NoWarn>
<NoError>$(NoError);</NoError>
<Deterministic>true</Deterministic>
<Features>strict</Features>
<ReportAnalyzer>true</ReportAnalyzer>
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
<RunAnalyzersDuringLiveAnalysis>true</RunAnalyzersDuringLiveAnalysis>
<RunAnalyzers>true</RunAnalyzers>
</PropertyGroup>
<PropertyGroup>
<NuGetAudit>true</NuGetAudit>
<NuGetAuditMode>all</NuGetAuditMode>
<NuGetAuditLevel>low</NuGetAuditLevel>
<WarningsNotAsErrors Condition="'$(Configuration)' != 'Release'">
$(WarningsNotAsErrors);NU1900;NU1901;NU1902;NU1903;NU1904
</WarningsNotAsErrors>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' != 'Release'">
<StaticWebAssetFingerprintingEnabled>false</StaticWebAssetFingerprintingEnabled>
<StaticWebAssetsFingerprintContent>false</StaticWebAssetsFingerprintContent>
<CompressionEnabled>false</CompressionEnabled>
<EnableDefaultCompressedItems>false</EnableDefaultCompressedItems>
<ExcludedAssetPatterns>wwwroot\**</ExcludedAssetPatterns>
<DefaultItemExcludes>$(DefaultItemExcludes);$(ExcludedAssetPatterns)</DefaultItemExcludes>
</PropertyGroup>
<ItemGroup>
<Using Include="System.Globalization"/>
<Using Include="System.Text.Json"/>
<Using Include="System.FormattableString" Static="True"/>
<Using Include="System.Console" Static="True"/>
<Using Include="System.Security.Cryptography"/>
<Using Include="System.Diagnostics.CodeAnalysis"/>
<Using Include="System.Text.Json.Serialization"/>
<Using Include="System.Linq.Expressions"/>
<Using Include="System.Reflection"/>
<Using Include="System.ComponentModel.DataAnnotations"/>
<Using Include="System.Diagnostics"/>
<Using Include="System.ComponentModel.DataAnnotations.Schema"/>
<Using Include="System.Net"/>
<Using Include="System.Net.Http.Headers"/>
<Using Include="System.Net.Http.Json"/>
<Using Include="System.Text.Json"/>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Meziantou.Analyzer">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="SonarAnalyzer.CSharp">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.Analyzers">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<AdditionalFiles Include="$(MSBuildThisFileDirectory)BannedSymbols.txt" Link="Properties/BannedSymbols.txt"/>
</ItemGroup>
</Project>