1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <Project xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
3
+
4
+ <PropertyGroup Label =" Metadata configuration" >
5
+ <OrganizationName ><!-- insert organization name here --> </OrganizationName >
6
+ <RepositoryName ><!-- insert repository name here --> </RepositoryName >
7
+ </PropertyGroup >
8
+
9
+ <!-- Solution wide properties -->
10
+ <PropertyGroup Label =" Assembly Naming" >
11
+ <Company >$(OrganizationName)</Company >
12
+ <Authors >$(OrganizationName)</Authors >
13
+ <NeutralLanguage >en</NeutralLanguage >
14
+ <DefaultLanguage >en-US</DefaultLanguage >
15
+ </PropertyGroup >
16
+
17
+ <PropertyGroup Label =" Compile settings" >
18
+ <Nullable >enable</Nullable >
19
+ <LangVersion >12.0</LangVersion >
20
+ <ImplicitUsings >enable</ImplicitUsings >
21
+ <TargetFramework >net8.0</TargetFramework >
22
+ <GenerateDocumentationFile >true</GenerateDocumentationFile >
23
+ <NoWarn >1573,1591,1712,CA1014</NoWarn >
24
+
25
+ <!-- Used by code coverage -->
26
+ <DebugType >full</DebugType >
27
+ <DebugSymbols >true</DebugSymbols >
28
+ </PropertyGroup >
29
+
30
+ <PropertyGroup Label =" Analyzer settings" >
31
+ <AnalysisLevel >latest-All</AnalysisLevel >
32
+ <EnforceCodeStyleInBuild >true</EnforceCodeStyleInBuild >
33
+ </PropertyGroup >
34
+
35
+ <!-- Treat warnings as errors are always on when building in release -->
36
+ <PropertyGroup Condition =" '$(Configuration)' == 'Release'" >
37
+ <TreatWarningsAsErrors >true</TreatWarningsAsErrors >
38
+ </PropertyGroup >
39
+
40
+ <!-- Shared code analyzers used for all projects in the solution -->
41
+ <ItemGroup Label =" Code Analyzers" >
42
+ <PackageReference Include =" AsyncFixer" Version =" 1.6.0" PrivateAssets =" All" />
43
+ <PackageReference Include =" Asyncify" Version =" 0.9.7" PrivateAssets =" All" />
44
+ <PackageReference Include =" Meziantou.Analyzer" Version =" 2.0.85" PrivateAssets =" All" />
45
+ <PackageReference Include =" SecurityCodeScan.VS2019" Version =" 5.6.7" PrivateAssets =" All" />
46
+ <PackageReference Include =" StyleCop.Analyzers" Version =" 1.2.0-beta.507" PrivateAssets =" All" />
47
+ <PackageReference Include =" SonarAnalyzer.CSharp" Version =" 9.10.0.77988" PrivateAssets =" All" />
48
+ </ItemGroup >
49
+
50
+ </Project >
0 commit comments