Skip to content

Commit

Permalink
chore: Moved NuGet Audit to targets (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
samtrion authored Nov 19, 2024
1 parent 4d5e9d6 commit 1770563
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/NetEvolve.Defaults/build/NetEvolve.Defaults.props
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
<Project>

<PropertyGroup Label="NuGet Audit">
<NuGetAudit Condition="'$(NuGetAudit)' == ''">true</NuGetAudit>
<NuGetAuditMode Condition="'$(NuGetAuditMode)' == ''">all</NuGetAuditMode>
<NuGetAuditLevel Condition="'$(NuGetAuditLevel)' == ''">low</NuGetAuditLevel>
<WarningsAsErrors Condition="$(ContinuousIntegrationBuild) == 'true' OR '$(Configuration)' == 'Release'">(WarningsAsErrors);NU1900;NU1901;NU1902;NU1903;NU1904</WarningsAsErrors>
</PropertyGroup>

</Project>
8 changes: 8 additions & 0 deletions src/NetEvolve.Defaults/build/NetEvolve.Defaults.targets
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
<Project>

<PropertyGroup Label="NuGet Audit">
<NuGetAudit Condition="'$(NuGetAudit)' == ''">true</NuGetAudit>
<NuGetAuditMode Condition="'$(NuGetAuditMode)' == ''">all</NuGetAuditMode>
<NuGetAuditLevel Condition="'$(NuGetAuditLevel)' == ''">low</NuGetAuditLevel>
<WarningsAsErrors Condition="$(ContinuousIntegrationBuild) == 'true' OR '$(Configuration)' == 'Release'">(WarningsAsErrors);NU1900;NU1901;NU1902;NU1903;NU1904</WarningsAsErrors>
</PropertyGroup>

</Project>

0 comments on commit 1770563

Please sign in to comment.