Skip to content

Commit

Permalink
Added warnings as errors to csproj files (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamie-taylor-rjj authored Nov 20, 2024
1 parent 0afd882 commit 727046e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions OwaspHeaders.Core.Example/OwaspHeaders.Core.Example.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions OwaspHeaders.Core.Tests/OwaspHeaders.Core.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<AssemblyName>OwaspHeaders.Core.Tests</AssemblyName>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
Expand Down
3 changes: 2 additions & 1 deletion src/OwaspHeaders.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@

<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<AssemblyName>OwaspHeaders.Core</AssemblyName>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

<!-- NuGet metadata -->
<PackageId>OwaspHeaders.Core</PackageId>
<Version>9.0.0</Version>
<Version>9.0.1</Version>
<Authors>Jamie Taylor</Authors>
<Company>RJJ Software Ltd</Company>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
Expand Down

0 comments on commit 727046e

Please sign in to comment.