Skip to content

Commit f6855f6

Browse files
committed
Enable "Treat warnings as errors"
1 parent 1f3a863 commit f6855f6

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

src/NServiceBus.RabbitMQ.AcceptanceTests/NServiceBus.RabbitMQ.AcceptanceTests.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<DefineConstants>DEBUG;TRACE</DefineConstants>
2222
<ErrorReport>prompt</ErrorReport>
2323
<WarningLevel>4</WarningLevel>
24+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
2425
</PropertyGroup>
2526
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2627
<DebugType>pdbonly</DebugType>
@@ -29,6 +30,7 @@
2930
<DefineConstants>TRACE</DefineConstants>
3031
<ErrorReport>prompt</ErrorReport>
3132
<WarningLevel>4</WarningLevel>
33+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
3234
</PropertyGroup>
3335
<ItemGroup>
3436
<Reference Include="Microsoft.CSharp" />

src/NServiceBus.RabbitMQ.Tests/NServiceBus.RabbitMQ.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<ErrorReport>prompt</ErrorReport>
3737
<WarningLevel>4</WarningLevel>
3838
<UseVSHostingProcess>false</UseVSHostingProcess>
39-
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
39+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
4040
<Prefer32Bit>false</Prefer32Bit>
4141
</PropertyGroup>
4242
<PropertyGroup>

src/NServiceBus.RabbitMQ.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 14
4-
VisualStudioVersion = 14.0.25123.0
4+
VisualStudioVersion = 14.0.25420.1
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NServiceBus.RabbitMQ", "NServiceBus.RabbitMQ\NServiceBus.RabbitMQ.csproj", "{BA731749-22C7-4025-8A4D-465AE8E02E61}"
77
EndProject

src/NServiceBus.RabbitMQ/NServiceBus.RabbitMQ.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
</NoWarn>
4747
<UseVSHostingProcess>false</UseVSHostingProcess>
4848
<Prefer32Bit>false</Prefer32Bit>
49+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
4950
</PropertyGroup>
5051
<ItemGroup>
5152
<Reference Include="Janitor, Version=1.2.1.0, Culture=neutral, PublicKeyToken=d34c7d3bba3746e6, processorArchitecture=MSIL">

0 commit comments

Comments
 (0)