From 9cfdcda2a15dbd0c3ba283e241b7e99369275b73 Mon Sep 17 00:00:00 2001 From: Michael Simons Date: Tue, 4 Feb 2025 16:08:17 +0000 Subject: [PATCH 1/2] Enable Nuget Audit --- NuGet.config | 4 ++++ src/referencePackages/Directory.Build.props | 1 + src/targetPacks/Directory.Build.props | 1 + 3 files changed, 6 insertions(+) diff --git a/NuGet.config b/NuGet.config index 7f03f4da42..f146167da4 100644 --- a/NuGet.config +++ b/NuGet.config @@ -24,4 +24,8 @@ + + + + diff --git a/src/referencePackages/Directory.Build.props b/src/referencePackages/Directory.Build.props index bbeeb6f2bf..4482751a21 100644 --- a/src/referencePackages/Directory.Build.props +++ b/src/referencePackages/Directory.Build.props @@ -33,6 +33,7 @@ false Release false + false true true diff --git a/src/targetPacks/Directory.Build.props b/src/targetPacks/Directory.Build.props index cda5fec2a1..433eeeeb08 100644 --- a/src/targetPacks/Directory.Build.props +++ b/src/targetPacks/Directory.Build.props @@ -10,6 +10,7 @@ netstandard2.0 false true + false true From 9cb74f8617bac0738e06b16c9d526d1f4a351919 Mon Sep 17 00:00:00 2001 From: Michael Simons Date: Tue, 4 Feb 2025 19:43:46 +0000 Subject: [PATCH 2/2] Update WarningsAsErorrs --- Directory.Build.props | 3 +++ src/packageSourceGenerator/PackageSourceGenerator.proj | 1 + 2 files changed, 4 insertions(+) diff --git a/Directory.Build.props b/Directory.Build.props index 40b287c0a5..2b70dcdbba 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -23,6 +23,9 @@ Customizations $(CustomizationsPrefix).props $(CustomizationsPrefix).cs + + + $(WarningsNotAsErrors);NU1901;NU1902;NU1903;NU1904 diff --git a/src/packageSourceGenerator/PackageSourceGenerator.proj b/src/packageSourceGenerator/PackageSourceGenerator.proj index 5ec604b970..88f36f8ce0 100644 --- a/src/packageSourceGenerator/PackageSourceGenerator.proj +++ b/src/packageSourceGenerator/PackageSourceGenerator.proj @@ -2,6 +2,7 @@ $(NetCurrent) + true $(ArtifactsBinDir)PackageSourceGeneratorTask\$(Configuration)\$(NetCurrent)\PackageSourceGeneratorTask.dll $(RepoRoot)src\referencePackages\src\