Repository navigation
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
53 lines (48 loc) · 2.67 KB
/
Copy pathDirectory.Build.props
File metadata and controls
53 lines (48 loc) · 2.67 KB
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
<Project>
<!-- Self-governance for CodeXray (.NET 10 Analyzers, SARIF v2.1, BannedApiAnalyzers) -->
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisLevel>10.0-recommended</AnalysisLevel>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<SarifOutputDir>$(MSBuildThisFileDirectory)Build/sarif/$(Configuration)/</SarifOutputDir>
<ErrorLog Condition="!$(MSBuildProjectName.EndsWith('_wpftmp'))">$(SarifOutputDir)$(MSBuildProjectName).sarif,version=2.1</ErrorLog>
<NoWarn>$(NoWarn);NU1901;NU1902;NU1903;NU1904;NU1510</NoWarn>
</PropertyGroup>
<Target Name="EnsureSarifOutputDirectory"
BeforeTargets="CoreCompile"
Condition="!$(MSBuildProjectName.EndsWith('_wpftmp')) and '$(SarifOutputDir)' != ''">
<MakeDir Directories="$(SarifOutputDir)" />
</Target>
<ItemGroup Condition="!$(MSBuildProjectName.EndsWith('_wpftmp'))">
<PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" Version="4.14.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="18.12.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Meziantou.Analyzer" Version="3.0.324">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Roslynator.Analyzers" Version="5.0.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="IDisposableAnalyzers" Version="4.0.8">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.35.0.4138">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<AdditionalFiles Include="$(MSBuildThisFileDirectory)BannedSymbols.txt" Visible="false" />
</ItemGroup>
</Project>