-
Notifications
You must be signed in to change notification settings - Fork 295
/
Copy path_AnalyzerSettings.props
34 lines (27 loc) · 1.27 KB
/
_AnalyzerSettings.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
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="Info_AnalyzerSettingsProps" BeforeTargets="Build" Condition=" $(Internal_Logging) == 'true' ">
<Message Text="Info: AnalyzerSettings.props imported by $(MSBuildProjectName)." Importance="high"/>
</Target>
<PropertyGroup>
<CodeAnalysisRuleSet>$(RulesetsRoot)\ApplicationInsightsSDKRules.ruleset</CodeAnalysisRuleSet>
<!-- Microsoft recommends that we disable CodeAnalysis in favor of FxCop Analyzers. aka.ms/fxcopanalyzers -->
<RunCodeAnalysis>false</RunCodeAnalysis>
<CodeAnalysisTreatWarningsAsErrors>false</CodeAnalysisTreatWarningsAsErrors>
<StyleCopEnabled>true</StyleCopEnabled>
</PropertyGroup>
<Choose>
<When Condition=" '$(Configuration)' == 'Release' ">
<PropertyGroup>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<StyleCopTreatErrorsAsWarnings>true</StyleCopTreatErrorsAsWarnings>
</PropertyGroup>
</When>
<When Condition=" '$(Configuration)' != 'Release' ">
<PropertyGroup>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<StyleCopTreatErrorsAsWarnings>false</StyleCopTreatErrorsAsWarnings>
</PropertyGroup>
</When>
</Choose>
</Project>