-
Notifications
You must be signed in to change notification settings - Fork 1
/
Directory.Build.props
48 lines (44 loc) · 3.94 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
<Project>
<!-- Based on article https://www.thomaslevesque.com/2017/09/18/common-msbuild-properties-and-items-with-directory-build-props/ -->
<PropertyGroup>
<!-- Common ruleset shared by all projects -->
<CodeAnalysisRuleset>$(MSBuildThisFileDirectory)AdaskoTheBeAsT.ruleset</CodeAnalysisRuleset>
<LangVersion>12.0</LangVersion>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors />
<NoWarn>$(NoWarn);1701;1702;1591</NoWarn>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
<ErrorLog>$(SolutionDir)\.sarif\$(MSBuildProjectName).json</ErrorLog>
</PropertyGroup>
<ItemGroup>
<!-- Add reference to analyzers to all projects -->
<PackageReference Include="AdaskoTheBeAsT.AsyncFixer" Version="1.6.0.12" PrivateAssets="all" ExcludeAssets="runtime" />
<PackageReference Include="AdaskoTheBeAsT.Asyncify" Version="0.9.7.12" PrivateAssets="all" ExcludeAssets="runtime" />
<PackageReference Include="AdaskoTheBeAsT.CodeCracker.CSharp" Version="1.1.0.33" PrivateAssets="all" ExcludeAssets="runtime" />
<PackageReference Include="AdaskoTheBeAsT.ConcurrencyLab.ParallelChecker" Version="2.7.0.12" PrivateAssets="all" ExcludeAssets="runtime" />
<PackageReference Include="AdaskoTheBeAsT.IDisposableAnalyzers" Version="4.0.7.12" PrivateAssets="all" ExcludeAssets="runtime" />
<PackageReference Include="AdaskoTheBeAsT.Puma.Security.Rules.2022" Version="2.3.1.12" PrivateAssets="all" ExcludeAssets="runtime" />
<PackageReference Include="AdaskoTheBeAsT.ReflectionAnalyzer" Version="0.3.1.12" PrivateAssets="all" ExcludeAssets="runtime" />
<PackageReference Include="AdaskoTheBeAsT.SecurityCodeScan.VS2022" Version="5.6.7.32" PrivateAssets="all" ExcludeAssets="runtime" />
<PackageReference Include="Meziantou.Analyzer" Version="2.0.184" PrivateAssets="all" ExcludeAssets="runtime" />
<PackageReference Include="Microsoft.CodeAnalysis" Version="4.12.0" PrivateAssets="all" ExcludeAssets="runtime" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0" PrivateAssets="all" ExcludeAssets="runtime" />
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.12.0" PrivateAssets="all" ExcludeAssets="runtime" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.12.0" PrivateAssets="all" ExcludeAssets="runtime" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="4.12.0" PrivateAssets="all" ExcludeAssets="runtime" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.12.0" PrivateAssets="all" ExcludeAssets="runtime" />
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="9.0.0" PrivateAssets="all" ExcludeAssets="runtime" />
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.Common" Version="4.12.0" PrivateAssets="all" ExcludeAssets="runtime" />
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.12.19" PrivateAssets="all" ExcludeAssets="runtime" />
<PackageReference Include="Roslynator.Analyzers" Version="4.12.10" PrivateAssets="all" ExcludeAssets="runtime" />
<PackageReference Include="Roslynator.CodeAnalysis.Analyzers" Version="4.12.10" PrivateAssets="all" ExcludeAssets="runtime" />
<PackageReference Include="Roslynator.Formatting.Analyzers" Version="4.12.10" PrivateAssets="all" ExcludeAssets="runtime" />
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.4.0.108396" PrivateAssets="all" ExcludeAssets="runtime" />
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556" PrivateAssets="all" ExcludeAssets="runtime" />
<!-- Common StyleCop configuration -->
<AdditionalFiles Include="$(MSBuildThisFileDirectory)stylecop.json" />
<AdditionalFiles Include="$(MSBuildThisFileDirectory)SecurityCodeScan.config.yml" />
</ItemGroup>
</Project>