From 28cbf47067048bc14b8dc66a1cc24d946ec7b104 Mon Sep 17 00:00:00 2001 From: Emma L Garland Date: Thu, 10 Oct 2024 21:11:58 +0100 Subject: [PATCH] Initial adjustment of the projects with package vulnerabilities that errored, to change to ignore the four specific Nuget vulnerability warnings in Debug mode (but not Release) as per https://learn.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu1901-nu1904 (NU1901,NU1902,NU1903,NU1904) --- ...aco.Cms.Persistence.EFCore.SqlServer.csproj | 10 ++++++++++ ...mbraco.Cms.Persistence.EFCore.Sqlite.csproj | 10 ++++++++++ .../Umbraco.Cms.Persistence.EFCore.csproj | 9 +++++++++ .../Umbraco.Cms.Persistence.SqlServer.csproj | 18 ++++++++++++++++-- .../Umbraco.Cms.Persistence.Sqlite.csproj | 11 +++++++++-- src/Umbraco.Cms/Umbraco.Cms.csproj | 12 ++++++++++++ .../Umbraco.Examine.Lucene.csproj | 11 +++++++++-- src/Umbraco.Web.UI/Umbraco.Web.UI.csproj | 11 +++++++++-- 8 files changed, 84 insertions(+), 8 deletions(-) diff --git a/src/Umbraco.Cms.Persistence.EFCore.SqlServer/Umbraco.Cms.Persistence.EFCore.SqlServer.csproj b/src/Umbraco.Cms.Persistence.EFCore.SqlServer/Umbraco.Cms.Persistence.EFCore.SqlServer.csproj index 264cf02579ea..d9112a3430e2 100644 --- a/src/Umbraco.Cms.Persistence.EFCore.SqlServer/Umbraco.Cms.Persistence.EFCore.SqlServer.csproj +++ b/src/Umbraco.Cms.Persistence.EFCore.SqlServer/Umbraco.Cms.Persistence.EFCore.SqlServer.csproj @@ -3,6 +3,16 @@ Umbraco CMS - Persistence - Entity Framework Core - SQL Server migrations Adds support for Entity Framework Core SQL Server migrations to Umbraco CMS. + + + NU1901,NU1902,NU1903,NU1904 + + + + + NU1901,NU1902,NU1903,NU1904 + + diff --git a/src/Umbraco.Cms.Persistence.EFCore.Sqlite/Umbraco.Cms.Persistence.EFCore.Sqlite.csproj b/src/Umbraco.Cms.Persistence.EFCore.Sqlite/Umbraco.Cms.Persistence.EFCore.Sqlite.csproj index f847ef478601..aae70549502a 100644 --- a/src/Umbraco.Cms.Persistence.EFCore.Sqlite/Umbraco.Cms.Persistence.EFCore.Sqlite.csproj +++ b/src/Umbraco.Cms.Persistence.EFCore.Sqlite/Umbraco.Cms.Persistence.EFCore.Sqlite.csproj @@ -3,6 +3,16 @@ Umbraco CMS - Persistence - Entity Framework Core - SQLite migrations Adds support for Entity Framework Core SQLite migrations to Umbraco CMS. + + + NU1901,NU1902,NU1903,NU1904 + + + + + NU1901,NU1902,NU1903,NU1904 + + diff --git a/src/Umbraco.Cms.Persistence.EFCore/Umbraco.Cms.Persistence.EFCore.csproj b/src/Umbraco.Cms.Persistence.EFCore/Umbraco.Cms.Persistence.EFCore.csproj index bbf03ea87a16..643ba72a20e4 100644 --- a/src/Umbraco.Cms.Persistence.EFCore/Umbraco.Cms.Persistence.EFCore.csproj +++ b/src/Umbraco.Cms.Persistence.EFCore/Umbraco.Cms.Persistence.EFCore.csproj @@ -7,6 +7,15 @@ IDE0270,CS0108,CS1998 + + IDE0270,CS0108,CS1998,NU1901,NU1902,NU1903,NU1904 + + + + + NU1901,NU1902,NU1903,NU1904 + diff --git a/src/Umbraco.Cms.Persistence.SqlServer/Umbraco.Cms.Persistence.SqlServer.csproj b/src/Umbraco.Cms.Persistence.SqlServer/Umbraco.Cms.Persistence.SqlServer.csproj index 3868136baaa7..5f07876d0c27 100644 --- a/src/Umbraco.Cms.Persistence.SqlServer/Umbraco.Cms.Persistence.SqlServer.csproj +++ b/src/Umbraco.Cms.Persistence.SqlServer/Umbraco.Cms.Persistence.SqlServer.csproj @@ -13,6 +13,20 @@ SA1405,SA1121,SA1117,SA1116,IDE1006,CS0618,IDE0270,IDE0057,IDE0054,CSO618,IDE0048, CS1574 + + + SA1405,SA1121,SA1117,SA1116,IDE1006,CS0618,IDE0270,IDE0057,IDE0054,CSO618,IDE0048,CS1574,NU1901,NU1902,NU1903,NU1904 + + + + + + NU1901,NU1902,NU1903,NU1904 + @@ -21,10 +35,10 @@ - + - + diff --git a/src/Umbraco.Cms.Persistence.Sqlite/Umbraco.Cms.Persistence.Sqlite.csproj b/src/Umbraco.Cms.Persistence.Sqlite/Umbraco.Cms.Persistence.Sqlite.csproj index 0c39c66d6453..5df9740593c7 100644 --- a/src/Umbraco.Cms.Persistence.Sqlite/Umbraco.Cms.Persistence.Sqlite.csproj +++ b/src/Umbraco.Cms.Persistence.Sqlite/Umbraco.Cms.Persistence.Sqlite.csproj @@ -4,8 +4,15 @@ Adds support for SQLite to Umbraco CMS. - - CS0114 + + CS0114,NU1901,NU1902,NU1903,NU1904 + + + + + NU1901,NU1902,NU1903,NU1904 + diff --git a/src/Umbraco.Cms/Umbraco.Cms.csproj b/src/Umbraco.Cms/Umbraco.Cms.csproj index 3bc60ebd12f8..6ac3eb56e0c1 100644 --- a/src/Umbraco.Cms/Umbraco.Cms.csproj +++ b/src/Umbraco.Cms/Umbraco.Cms.csproj @@ -5,6 +5,18 @@ false false + + + + NU1901,NU1902,NU1903,NU1904 + + + + + + NU1901,NU1902,NU1903,NU1904 + + diff --git a/src/Umbraco.Examine.Lucene/Umbraco.Examine.Lucene.csproj b/src/Umbraco.Examine.Lucene/Umbraco.Examine.Lucene.csproj index e036605449cc..6e52dcc91b13 100644 --- a/src/Umbraco.Examine.Lucene/Umbraco.Examine.Lucene.csproj +++ b/src/Umbraco.Examine.Lucene/Umbraco.Examine.Lucene.csproj @@ -6,8 +6,15 @@ Umbraco.Cms.Infrastructure.Examine - - CS0618 + + CS0618,NU1901,NU1902,NU1903,NU1904 + + + + + NU1901,NU1902,NU1903,NU1904 + diff --git a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj index c22b5ae7392e..981de90726db 100644 --- a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj +++ b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj @@ -6,8 +6,15 @@ - - SA1119 + + SA1119,NU1901,NU1902,NU1903,NU1904 + + + + + NU1901,NU1902,NU1903,NU1904 +