1
1
<Project >
2
- <PropertyGroup >
3
- <LangVersion >latest</LangVersion >
4
- <ManagePackageVersionsCentrally >true</ManagePackageVersionsCentrally >
5
- <AccelerateBuildsInVisualStudio >true</AccelerateBuildsInVisualStudio >
6
- <AnalysisLevel >latest</AnalysisLevel >
7
- <AnalysisMode >AllEnabledByDefault</AnalysisMode >
8
- <CodeAnalysisTreatWarningsAsErrors >true</CodeAnalysisTreatWarningsAsErrors >
9
- <EnableNETAnalyzers >true</EnableNETAnalyzers >
10
- <EnforceCodeStyleInBuild >true</EnforceCodeStyleInBuild >
11
- <ImplicitUsings >enable</ImplicitUsings >
12
- <TreatWarningsAsErrors >true</TreatWarningsAsErrors >
13
- <RunAnalyzersDuringBuild >true</RunAnalyzersDuringBuild >
14
- <RunAnalyzersDuringLiveAnalysis >true</RunAnalyzersDuringLiveAnalysis >
15
- <!--
2
+ <PropertyGroup >
3
+ <LangVersion >latest</LangVersion >
4
+ <ManagePackageVersionsCentrally >true</ManagePackageVersionsCentrally >
5
+ <AccelerateBuildsInVisualStudio >true</AccelerateBuildsInVisualStudio >
6
+ <AnalysisLevel >latest</AnalysisLevel >
7
+ <AnalysisMode >AllEnabledByDefault</AnalysisMode >
8
+ <CodeAnalysisTreatWarningsAsErrors >true</CodeAnalysisTreatWarningsAsErrors >
9
+ <EnableNETAnalyzers >true</EnableNETAnalyzers >
10
+ <EnforceCodeStyleInBuild >true</EnforceCodeStyleInBuild >
11
+ <ImplicitUsings >enable</ImplicitUsings >
12
+ <TreatWarningsAsErrors >true</TreatWarningsAsErrors >
13
+ <RunAnalyzersDuringBuild >true</RunAnalyzersDuringBuild >
14
+ <RunAnalyzersDuringLiveAnalysis >true</RunAnalyzersDuringLiveAnalysis >
15
+ <!--
16
16
CA2007: Consider calling ConfigureAwait on the awaited task
17
17
MA0004: Use Task.ConfigureAwait(false) as the current SynchronizationContext is not needed
18
18
CA1056: Change the type of property 'Url' from 'string' to 'System.Uri'
19
19
CA1054: Change the type of parameter of the method to allow a Uri to be passed as a 'System.Uri' object
20
20
CA1055: Change the return type of method from 'string' to 'System.Uri'
21
21
-->
22
- <NoWarn >$(NoWarn);CA2007;CA1056;CA1054;CA1055;MA0004;RCS1090</NoWarn >
23
- <NoError >$(NoError);CA2007;CA1056;CA1054;CA1055;MA0004;RCS1090</NoError >
24
- <Deterministic >true</Deterministic >
25
- <Features >strict</Features >
26
- <ReportAnalyzer >true</ReportAnalyzer >
27
- </PropertyGroup >
28
- <ItemGroup >
29
- <Using Include =" System.Globalization" />
30
- <Using Include =" System.Text.Json" />
31
- <Using Include =" System.FormattableString" Static =" True" />
32
- <Using Include =" System.Console" Static =" True" />
33
- <Using Include =" System.Security.Cryptography" />
34
- <Using Include =" System.Diagnostics.CodeAnalysis" />
35
- <Using Include =" System.Text.Json.Serialization" />
36
- <Using Include =" System.Linq.Expressions" />
37
- <Using Include =" System.Reflection" />
38
- <Using Include =" System.ComponentModel.DataAnnotations" />
39
- <Using Include =" System.Diagnostics" />
40
- <Using Include =" System.ComponentModel.DataAnnotations.Schema" />
41
- <Using Include =" System.Net" />
42
- <Using Include =" System.Net.Http.Headers" />
43
- <Using Include =" System.Net.Http.Json" />
44
- <Using Include =" System.Text.Json" />
45
- </ItemGroup >
46
- <ItemGroup Condition =" '$(Configuration)' == 'Debug'" >
47
- <PackageReference Include =" Meziantou.Analyzer" >
48
- <PrivateAssets >all</PrivateAssets >
49
- <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
50
- </PackageReference >
51
- <PackageReference Include =" Microsoft.VisualStudio.Threading.Analyzers" >
52
- <PrivateAssets >all</PrivateAssets >
53
- <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
54
- </PackageReference >
55
- <PackageReference Include =" Microsoft.CodeAnalysis.BannedApiAnalyzers" >
56
- <PrivateAssets >all</PrivateAssets >
57
- <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
58
- </PackageReference >
59
- <PackageReference Include =" AsyncFixer" >
60
- <PrivateAssets >all</PrivateAssets >
61
- <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
62
- </PackageReference >
63
- <PackageReference Include =" Asyncify" >
64
- <PrivateAssets >all</PrivateAssets >
65
- <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
66
- </PackageReference >
67
- <PackageReference Include =" SonarAnalyzer.CSharp" >
68
- <PrivateAssets >all</PrivateAssets >
69
- <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
70
- </PackageReference >
71
- <PackageReference Include =" SecurityCodeScan.VS2019" >
72
- <PrivateAssets >all</PrivateAssets >
73
- <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
74
- </PackageReference >
75
- <PackageReference Include =" Roslynator.Analyzers" >
76
- <PrivateAssets >all</PrivateAssets >
77
- <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
78
- </PackageReference >
79
- <PackageReference Include =" Microsoft.EntityFrameworkCore.Analyzers" >
80
- <PrivateAssets >all</PrivateAssets >
81
- <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
82
- </PackageReference >
83
- <PackageReference Include =" Microsoft.EntityFrameworkCore.Design" >
84
- <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
85
- <PrivateAssets >all</PrivateAssets >
86
- </PackageReference >
87
- <PackageReference Include =" Microsoft.EntityFrameworkCore.Tools" >
88
- <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
89
- <PrivateAssets >all</PrivateAssets >
90
- </PackageReference >
91
- </ItemGroup >
92
- <ItemGroup >
93
- <AdditionalFiles Include =" $(MSBuildThisFileDirectory)BannedSymbols.txt" Link =" Properties/BannedSymbols.txt" />
94
- <Compile Include =" $(MSBuildThisFileDirectory)/common/AssemblyInfo.cs" Link =" Properties/AssemblyInfo.common.cs" />
95
- </ItemGroup >
22
+ <NoWarn >$(NoWarn);CA2007;CA1056;CA1054;CA1055;MA0004;RCS1090</NoWarn >
23
+ <NoError >$(NoError);CA2007;CA1056;CA1054;CA1055;MA0004;RCS1090</NoError >
24
+ <Deterministic >true</Deterministic >
25
+ <Features >strict</Features >
26
+ <ReportAnalyzer >true</ReportAnalyzer >
27
+ </PropertyGroup >
28
+
29
+ <PropertyGroup >
30
+ <NuGetAudit >true</NuGetAudit >
31
+ <NuGetAuditMode >all</NuGetAuditMode >
32
+ <NuGetAuditLevel >low</NuGetAuditLevel >
33
+ <WarningsNotAsErrors Condition =" '$(Configuration)' != 'Release'" >
34
+ $(WarningsNotAsErrors);NU1900;NU1901;NU1902;NU1903;NU1904
35
+ </WarningsNotAsErrors >
36
+ </PropertyGroup >
37
+
38
+ <ItemGroup >
39
+ <Using Include =" System.Globalization" />
40
+ <Using Include =" System.Text.Json" />
41
+ <Using Include =" System.FormattableString" Static =" True" />
42
+ <Using Include =" System.Console" Static =" True" />
43
+ <Using Include =" System.Security.Cryptography" />
44
+ <Using Include =" System.Diagnostics.CodeAnalysis" />
45
+ <Using Include =" System.Text.Json.Serialization" />
46
+ <Using Include =" System.Linq.Expressions" />
47
+ <Using Include =" System.Reflection" />
48
+ <Using Include =" System.ComponentModel.DataAnnotations" />
49
+ <Using Include =" System.Diagnostics" />
50
+ <Using Include =" System.ComponentModel.DataAnnotations.Schema" />
51
+ <Using Include =" System.Net" />
52
+ <Using Include =" System.Net.Http.Headers" />
53
+ <Using Include =" System.Net.Http.Json" />
54
+ <Using Include =" System.Text.Json" />
55
+ </ItemGroup >
56
+ <ItemGroup Condition =" '$(Configuration)' == 'Debug'" >
57
+ <PackageReference Include =" Meziantou.Analyzer" >
58
+ <PrivateAssets >all</PrivateAssets >
59
+ <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
60
+ </PackageReference >
61
+ <PackageReference Include =" Microsoft.VisualStudio.Threading.Analyzers" >
62
+ <PrivateAssets >all</PrivateAssets >
63
+ <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
64
+ </PackageReference >
65
+ <PackageReference Include =" Microsoft.CodeAnalysis.BannedApiAnalyzers" >
66
+ <PrivateAssets >all</PrivateAssets >
67
+ <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
68
+ </PackageReference >
69
+ <PackageReference Include =" AsyncFixer" >
70
+ <PrivateAssets >all</PrivateAssets >
71
+ <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
72
+ </PackageReference >
73
+ <PackageReference Include =" Asyncify" >
74
+ <PrivateAssets >all</PrivateAssets >
75
+ <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
76
+ </PackageReference >
77
+ <PackageReference Include =" SonarAnalyzer.CSharp" >
78
+ <PrivateAssets >all</PrivateAssets >
79
+ <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
80
+ </PackageReference >
81
+ <PackageReference Include =" SecurityCodeScan.VS2019" >
82
+ <PrivateAssets >all</PrivateAssets >
83
+ <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
84
+ </PackageReference >
85
+ <PackageReference Include =" Roslynator.Analyzers" >
86
+ <PrivateAssets >all</PrivateAssets >
87
+ <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
88
+ </PackageReference >
89
+ <PackageReference Include =" Microsoft.EntityFrameworkCore.Analyzers" >
90
+ <PrivateAssets >all</PrivateAssets >
91
+ <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
92
+ </PackageReference >
93
+ <PackageReference Include =" Microsoft.EntityFrameworkCore.Design" >
94
+ <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
95
+ <PrivateAssets >all</PrivateAssets >
96
+ </PackageReference >
97
+ <PackageReference Include =" Microsoft.EntityFrameworkCore.Tools" >
98
+ <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
99
+ <PrivateAssets >all</PrivateAssets >
100
+ </PackageReference >
101
+ </ItemGroup >
102
+ <ItemGroup >
103
+ <AdditionalFiles Include =" $(MSBuildThisFileDirectory)BannedSymbols.txt" Link =" Properties/BannedSymbols.txt" />
104
+ <Compile Include =" $(MSBuildThisFileDirectory)/common/AssemblyInfo.cs" Link =" Properties/AssemblyInfo.common.cs" />
105
+ </ItemGroup >
96
106
</Project >
0 commit comments