Skip to content

Commit

Permalink
Alterando WarningsAsErrors para compilação de Release
Browse files Browse the repository at this point in the history
  • Loading branch information
hrickmachado committed Sep 17, 2020
1 parent 9dcad17 commit bc7323f
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
<WarningsAsErrors />
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors />
</PropertyGroup>

<ItemGroup>
<Compile Include="..\Benner.LGPDRepository.Unit.Test\DictionaryExtensionsTests.cs" Link="DictionaryExtensionsTests.cs" />
<Compile Include="..\Benner.LGPDRepository.Unit.Test\LGPDRepositoryTests.cs" Link="LGPDRepositoryTests.cs" />
Expand Down
5 changes: 5 additions & 0 deletions Benner.LGPDRepository.Core/Benner.LGPDRepository.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
<WarningsAsErrors />
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors />
</PropertyGroup>

<ItemGroup>
<Compile Include="..\Benner.LGPDRepository\Command.cs" Link="Command.cs" />
<Compile Include="..\Benner.LGPDRepository\EmptyQuery.cs" Link="EmptyQuery.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
Expand Down
1 change: 1 addition & 0 deletions Benner.LGPDRepository/Benner.LGPDRepository.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
<NoWarn>1701;1702,8002</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors />
</PropertyGroup>

<ItemGroup>
<Compile Include="..\Benner.NoSQLRepository\Extensions\DictionaryExtensions.cs" Link="Extensions\DictionaryExtensions.cs" />
<Compile Include="..\Benner.NoSQLRepository\FluentdCommand.cs" Link="FluentdCommand.cs" />
Expand Down
1 change: 1 addition & 0 deletions Benner.NoSQLRepository/Benner.NoSQLRepository.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
Expand Down

0 comments on commit bc7323f

Please sign in to comment.