Skip to content

Commit 46304b5

Browse files
committed
Merge pull request #1 from mnaoumov/fix-2739
Add TreatWarningsAsErrors to all projects
2 parents 5f81cbd + bc79290 commit 46304b5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Git.hub.Demo/Git.hub.Demo.csproj

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<DefineConstants>DEBUG;TRACE</DefineConstants>
2424
<ErrorReport>prompt</ErrorReport>
2525
<WarningLevel>4</WarningLevel>
26+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
2627
</PropertyGroup>
2728
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
2829
<PlatformTarget>x86</PlatformTarget>
@@ -32,6 +33,7 @@
3233
<DefineConstants>TRACE</DefineConstants>
3334
<ErrorReport>prompt</ErrorReport>
3435
<WarningLevel>4</WarningLevel>
36+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
3537
</PropertyGroup>
3638
<ItemGroup>
3739
<Reference Include="System" />

Git.hub/Git.hub.csproj

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<DefineConstants>DEBUG;TRACE</DefineConstants>
2525
<ErrorReport>prompt</ErrorReport>
2626
<WarningLevel>4</WarningLevel>
27+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
2728
</PropertyGroup>
2829
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2930
<DebugType>pdbonly</DebugType>
@@ -32,6 +33,7 @@
3233
<DefineConstants>TRACE</DefineConstants>
3334
<ErrorReport>prompt</ErrorReport>
3435
<WarningLevel>4</WarningLevel>
36+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
3537
</PropertyGroup>
3638
<ItemGroup>
3739
<Reference Include="RestSharp, Version=105.0.1.0, Culture=neutral, processorArchitecture=MSIL">

0 commit comments

Comments
 (0)