Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 4240891

Browse files
committed
Set warning options in GitHub.Logging.
Treat warnings as errors and run CA in appropriate configurations.
1 parent 35d147f commit 4240891

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/GitHub.Logging/GitHub.Logging.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
1414
<TargetFrameworkProfile />
15+
<CodeAnalysisRuleSet>..\common\GitHubVS.ruleset</CodeAnalysisRuleSet>
16+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
17+
<CodeAnalysisIgnoreGeneratedCode>true</CodeAnalysisIgnoreGeneratedCode>
1518
</PropertyGroup>
1619
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1720
<DebugSymbols>true</DebugSymbols>
@@ -21,6 +24,7 @@
2124
<DefineConstants>DEBUG;TRACE</DefineConstants>
2225
<ErrorReport>prompt</ErrorReport>
2326
<WarningLevel>4</WarningLevel>
27+
<RunCodeAnalysis>false</RunCodeAnalysis>
2428
</PropertyGroup>
2529
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2630
<DebugType>pdbonly</DebugType>
@@ -29,6 +33,7 @@
2933
<DefineConstants>TRACE</DefineConstants>
3034
<ErrorReport>prompt</ErrorReport>
3135
<WarningLevel>4</WarningLevel>
36+
<RunCodeAnalysis>true</RunCodeAnalysis>
3237
</PropertyGroup>
3338
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'DebugCodeAnalysis|AnyCPU'">
3439
<DebugSymbols>true</DebugSymbols>

0 commit comments

Comments
 (0)