Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Adding Warnings As Errors for release builds (#361)
Browse files Browse the repository at this point in the history
* Setting TreatWarningsAsErrors in release build

* Fixing warning by unifying S.R.Metadata versions
  • Loading branch information
conniey authored Oct 14, 2016
1 parent 5b8fc64 commit 7686067
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions dir.props
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)\PortabilityTools.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<!-- Trying to mitigate the number of warnings that the solution contains by
adding this into our Release builds. As a result, it should be caught in
our PRs because of the CI builds -->
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
</Project>
4 changes: 4 additions & 0 deletions tests/Microsoft.Fx.Portability.Cci.Tests/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
<assemblyIdentity name="System.Collections.NonGeneric" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Reflection.Metadata" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.4.1.0" newVersion="1.4.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.IO.FileSystem.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
Expand Down
2 changes: 1 addition & 1 deletion tests/Microsoft.Fx.Portability.Cci.Tests/project.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"dependencies": {
"Microsoft.CodeAnalysis.CSharp": "1.3.2",
"System.Reflection.Metadata": "1.2.0",
"Newtonsoft.Json": "9.0.1",
"NSubstitute": "1.10.0",
"System.Reflection.Metadata": "1.4.1-beta-24227-04",
"xunit": "2.1.0",
"xunit.runner.visualstudio": "2.1.0"
},
Expand Down

0 comments on commit 7686067

Please sign in to comment.