Skip to content

Commit

Permalink
Add WarningConfiguration.targets
Browse files Browse the repository at this point in the history
  • Loading branch information
trejjam committed Jun 17, 2023
1 parent a95b023 commit f7a37ed
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/WarningConfiguration.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<Project>

<PropertyGroup Condition="'$(Configuration)'=='Release'">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<PropertyGroup>
<WarningsAsErrors>$(WarningsAsErrors);CS4014;NU1603</WarningsAsErrors>
</PropertyGroup>

<PropertyGroup>
<BaseOutputPath>..\..\Build\$(ProjectName)\</BaseOutputPath>
</PropertyGroup>

</Project>

0 comments on commit f7a37ed

Please sign in to comment.