NuGet vulnerability warnings: Warn in non-Release mode, Error in non-Release mode (#17244)
* 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) * Fixed formatting errors with tests * No trailing whitespace * Move NuGet vulnerability warnings error suppression to Directory.Build.props, combine WarningsNotAsErrors and fix minor issues * Update Umbraco.JsonSchema.csproj Removed unwanted change * Update Umbraco.JsonSchema.csproj Removed unwanted change * Revert unecessary changes since merge * Tweak more unecessary changes * Small tweaks * Remove space * Reverted spacing changes * Remove no longer required warning exclusions * Reverted unwanted change * Reversed order * A few tweaks to reduce warnings in Umbraco.TestData * More warnings removed as no longer an issue --------- Co-authored-by: Ronald Barendse <ronald@barend.se> Co-authored-by: Emma Garland <emma.garland@rocksolidknowledge.com> Co-authored-by: Jason Elkin <jasonelkin86@gmail.com>
This commit is contained in:
@@ -232,7 +232,11 @@ public static class BuilderExtensions
|
||||
return builder;
|
||||
}
|
||||
|
||||
public static T WithPropertyValues<T>(this T builder, object propertyValues, string? culture = null, string? segment = null)
|
||||
public static T WithPropertyValues<T>(
|
||||
this T builder,
|
||||
object propertyValues,
|
||||
string? culture = null,
|
||||
string? segment = null)
|
||||
where T : IWithPropertyValues
|
||||
{
|
||||
builder.PropertyValues = propertyValues;
|
||||
|
||||
@@ -41,7 +41,9 @@ public class MediaTypeEditingBuilder : ContentTypeEditingBaseBuilder<MediaTypeEd
|
||||
.Build();
|
||||
}
|
||||
|
||||
public static MediaTypeCreateModel CreateBasicFolderMediaType(string alias = "basicFolder", string name = "BasicFolder")
|
||||
public static MediaTypeCreateModel CreateBasicFolderMediaType(
|
||||
string alias = "basicFolder",
|
||||
string name = "BasicFolder")
|
||||
{
|
||||
var builder = new MediaTypeEditingBuilder();
|
||||
return (MediaTypeCreateModel)builder
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<IsPackable>true</IsPackable>
|
||||
<EnablePackageValidation>$(BaseEnablePackageValidation)</EnablePackageValidation>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
<PropertyGroup>
|
||||
<!--
|
||||
TODO: Fix and remove overrides:
|
||||
|
||||
Reference in New Issue
Block a user