11<Project >
2+ <!-- Code analysis options -->
23 <PropertyGroup >
4+ <EnableNETAnalyzers >true</EnableNETAnalyzers >
35 <CodeAnalysisRuleSet >$(MSBuildThisFileDirectory).stylecop\StyleCop.ruleset</CodeAnalysisRuleSet >
46 <RunSettingsFilePath >$(MSBuildThisFileDirectory).runsettings</RunSettingsFilePath >
7+ <TreatWarningsAsErrors Condition =" '$(ContinuousIntegrationBuild)' == 'true' " >true</TreatWarningsAsErrors >
8+ <NoWarn >$(NoWarn);NU1601;NU1603;NU1801;NETSDK1138</NoWarn >
9+ <!-- IDE0130 Namespace does not match folder structure -->
10+ <NoWarn >$(NoWarn);IDE0130</NoWarn >
11+ <!-- Rules not compatible with netstandard 2.0: -->
12+ <!-- IDE0090 New expression can be simplified -->
13+ <NoWarn >$(NoWarn);IDE0090</NoWarn >
14+ <!-- Collection initialization can be simplified -->
15+ <NoWarn >$(NoWarn);IDE0028;IDE0300;IDE0301;IDE0305</NoWarn >
16+ <!-- IDE0290 Use primary constructor -->
17+ <NoWarn >$(NoWarn);IDE0290</NoWarn >
18+ <!-- IDE0083 Use pattern matching -->
19+ <NoWarn >$(NoWarn);IDE0083</NoWarn >
20+ <!-- IDE0074 Use compound assignment -->
21+ <NoWarn >$(NoWarn);IDE0074</NoWarn >
22+ <!-- IDE0057 Substring can be simplified -->
23+ <NoWarn >$(NoWarn);IDE0057</NoWarn >
24+ <!-- IDE0056 Indexing can be simplified -->
25+ <NoWarn >$(NoWarn);IDE0056</NoWarn >
26+ <!-- IDE0063 Using can be simplified -->
27+ <NoWarn >$(NoWarn);IDE0063</NoWarn >
28+ <!-- IDE0066 Use switch expression -->
29+ <NoWarn >$(NoWarn);IDE0066</NoWarn >
30+ <!-- CA1510 Use ArgumentNullException.ThrowIfNull -->
31+ <NoWarn >$(NoWarn);CA1510</NoWarn >
32+ <!-- RCS1187 Use constant instead of field -->
33+ <NoWarn >$(NoWarn);RCS1187</NoWarn >
34+ </PropertyGroup >
35+
36+ <!-- Restore options -->
37+ <PropertyGroup >
538 <RestoreConfigFile >$(MSBuildThisFileDirectory)NuGet.Config</RestoreConfigFile >
639 <RestoreIgnoreFailedSources >true</RestoreIgnoreFailedSources >
40+ <CopyLocalLockFileAssemblies >true</CopyLocalLockFileAssemblies >
41+ <RestorePackagesWithLockFile >true</RestorePackagesWithLockFile >
42+ <RestoreLockedMode Condition =" '$(ContinuousIntegrationBuild)' == 'true'" >true</RestoreLockedMode >
43+ <DisableImplicitNuGetFallbackFolder >true</DisableImplicitNuGetFallbackFolder >
44+ </PropertyGroup >
45+
46+ <!-- Build management -->
47+ <ItemGroup >
48+ <SourceRoot Include =" $(MSBuildProjectDirectory)/" />
49+ </ItemGroup >
50+
51+ <PropertyGroup Condition =" '$(Platform)'=='AnyCPU'" >
52+ <PlatformTarget >AnyCPU</PlatformTarget >
53+ </PropertyGroup >
54+
55+ <PropertyGroup Condition =" '$(IsTestProject)'!='true'" >
56+ <Deterministic >true</Deterministic >
57+ </PropertyGroup >
58+
59+ <PropertyGroup >
60+ <Deterministic >true</Deterministic >
61+ <DeterministicSourcePaths >true</DeterministicSourcePaths >
62+ <PathMap >$(MSBuildThisFileDirectory)=./</PathMap >
763 <GenerateDocumentationFile >true</GenerateDocumentationFile >
864 <DisableSystemTextJsonSourceGenerator >true</DisableSystemTextJsonSourceGenerator >
9- <TreatWarningsAsErrors Condition =" '$(ContinuousIntegrationBuild)' == 'true' " >true</TreatWarningsAsErrors >
10- <NoWarn >NU1801</NoWarn >
11- <NoWarn >NU1601</NoWarn >
1265 </PropertyGroup >
66+
67+ <!-- Additional info options -->
68+ <PropertyGroup >
69+ <AppDesignerFolder >Properties</AppDesignerFolder >
70+ <GenerateAssemblyInfo >false</GenerateAssemblyInfo >
71+ <SatelliteResourceLanguages >en</SatelliteResourceLanguages >
72+ <NeutralLanguage >en</NeutralLanguage >
73+ <NeutralResourcesLanguage >en</NeutralResourcesLanguage >
74+ </PropertyGroup >
75+
76+ <!-- No packing for test projects -->
77+ <PropertyGroup Condition =" '$(IsTestProject)'=='true'" >
78+ <IsPackable >false</IsPackable >
79+ <IsPublishable >false</IsPublishable >
80+ </PropertyGroup >
81+
82+ <!-- Packing options -->
83+ <PropertyGroup >
84+ <ContentTargetFolders >content</ContentTargetFolders >
85+ </PropertyGroup >
86+
1387 <ItemGroup >
1488 <PackageReference Include =" StyleCop.Analyzers" Version =" 1.1.118" >
1589 <IncludeAssets >runtime; build; native; contentfiles; analyzers</IncludeAssets >
1690 <PrivateAssets >all</PrivateAssets >
1791 </PackageReference >
1892 <AdditionalFiles Include =" $(MSBuildThisFileDirectory).stylecop\stylecop.json" Visible =" false" />
93+ <PackageReference Include =" Roslynator.Analyzers" Version =" 4.14.1" >
94+ <PrivateAssets >all</PrivateAssets >
95+ <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
96+ </PackageReference >
1997 <None Include =" $(MSBuildProjectDirectory)\packages.lock.json" Visible =" false" />
98+ <!-- Newer version helps better resolving common dll dependencies -->
99+ <PackageReference Include =" Microsoft.NETCore.Platforms" Version =" 7.0.4" Condition =" '$(IsTestProject)' != 'true'" />
20100 </ItemGroup >
21- </Project >
101+ </Project >
0 commit comments