diff --git a/docs/CHANGELOG-v3.md b/docs/CHANGELOG-v3.md index a782c2c09..88ffc2a71 100644 --- a/docs/CHANGELOG-v3.md +++ b/docs/CHANGELOG-v3.md @@ -44,8 +44,8 @@ What's changed since pre-release v3.0.0-B0203: [#1869](https://github.com/microsoft/PSRule/pull/1869) - Bump xunit.runner.visualstudio to v2.8.2. [#1869](https://github.com/microsoft/PSRule/pull/1869) - - Bump System.Drawing.Common to v8.0.7. - [#1867](https://github.com/microsoft/PSRule/pull/1867) + - Bump System.Drawing.Common to v8.0.8. + [#1887](https://github.com/microsoft/PSRule/pull/1887) - Bump YamlDotNet to v15.3.0. [#1856](https://github.com/microsoft/PSRule/pull/1856) - Bump Microsoft.CodeAnalysis.Common to v4.10.0. diff --git a/src/PSRule.BuildTool/PSRule.BuildTool.csproj b/src/PSRule.BuildTool/PSRule.BuildTool.csproj index b30f49156..16a4b445d 100644 --- a/src/PSRule.BuildTool/PSRule.BuildTool.csproj +++ b/src/PSRule.BuildTool/PSRule.BuildTool.csproj @@ -10,7 +10,7 @@ - + diff --git a/src/PSRule.BuildTool/packages.lock.json b/src/PSRule.BuildTool/packages.lock.json index d0791d91a..0ca2af746 100644 --- a/src/PSRule.BuildTool/packages.lock.json +++ b/src/PSRule.BuildTool/packages.lock.json @@ -30,9 +30,9 @@ }, "System.Drawing.Common": { "type": "Direct", - "requested": "[8.0.7, )", - "resolved": "8.0.7", - "contentHash": "DoeBae0gZvxs3mtfoub6F1k28fSkFPzmhFuvblplKMnLYKmTMVy0j4Yxahh96KM532JzHGDxhJn1VpMKSB1pyg==", + "requested": "[8.0.8, )", + "resolved": "8.0.8", + "contentHash": "4ZM1wvLjz9nVVExsfPAaSl/qOvU+QNedJL5rQ+2Wbow+iGeyO0e7XN07707rMBgaffEeeLrCZBwC0oHUuvRdPw==", "dependencies": { "Microsoft.Win32.SystemEvents": "8.0.0" } diff --git a/src/PSRule/Commands/ExportConventionCommand.cs b/src/PSRule/Commands/ExportConventionCommand.cs index 82a579010..7ce5ef4fc 100644 --- a/src/PSRule/Commands/ExportConventionCommand.cs +++ b/src/PSRule/Commands/ExportConventionCommand.cs @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. +using System.Diagnostics.CodeAnalysis; using System.Management.Automation; using PSRule.Definitions; using PSRule.Definitions.Conventions; @@ -18,11 +19,16 @@ internal sealed class ExportConventionCommand : LanguageBlock private const string Cmdlet_BodyParameter = "Body"; private const string Cmdlet_ScopeParameter = "Scope"; +#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring as nullable. + [Parameter(Mandatory = true, Position = 0)] [ValidateNotNullOrEmpty()] [ValidateLength(3, 128)] + public string Name { get; set; } +#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring as nullable. + /// /// A script block to call once before any objects are processed. ///