21 строка
1.3 KiB
XML
21 строка
1.3 KiB
XML
<Project>
|
|
<ItemGroup Label="Analyzers" Condition=" '$(SKIP_POLLY_ANALYZERS)' == '' ">
|
|
<PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" PrivateAssets="All" />
|
|
<PackageReference Include="SonarAnalyzer.CSharp" PrivateAssets="All" />
|
|
<PackageReference Include="StyleCop.Analyzers" PrivateAssets="All" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
|
|
<AdditionalFiles Include="$(MSBuildThisFileDirectory)analyzers\BannedSymbols.txt" Condition=" '$(IsTestProject)' != 'true' " Visible="false" />
|
|
<AdditionalFiles Include="$(MSBuildThisFileDirectory)analyzers\SonarLint.xml" Visible="False" />
|
|
<AdditionalFiles Include="$(MsBuildThisFileDirectory)analyzers\Stylecop.json" Visible="false" />
|
|
<EditorConfigFiles Include="$(MsBuildThisFileDirectory)analyzers\Stylecop.globalconfig" />
|
|
<EditorConfigFiles Include="$(MsBuildThisFileDirectory)analyzers\$(ProjectType).globalconfig" />
|
|
</ItemGroup>
|
|
|
|
<PropertyGroup Condition=" '$(SKIP_POLLY_ANALYZERS)' == '' ">
|
|
<RunAnalyzers>true</RunAnalyzers>
|
|
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
|
|
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
|
|
<AnalysisLevel>latest</AnalysisLevel>
|
|
<EnableNETAnalyzers>true</EnableNETAnalyzers>
|
|
</PropertyGroup>
|
|
</Project>
|