We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0a21fdb + e8fe5da commit dac2e64Copy full SHA for dac2e64
src/AppCore.SigningTool/Commands/Sn/SnExportPublicKeyCommand.cs
@@ -39,8 +39,11 @@ public void Configure(CommandLineApplication cmd)
39
.OnValidate(
40
vc =>
41
{
42
- if (ParseAssemblyHashAlgorithm(_hashAlgorithm.ParsedValue) == AssemblyHashAlgorithm.None)
+ if (_hashAlgorithm.HasValue()
43
+ && ParseAssemblyHashAlgorithm(_hashAlgorithm.ParsedValue) == AssemblyHashAlgorithm.None)
44
+ {
45
return new ValidationResult($"Unknown hash algorithm '{_hashAlgorithm.ParsedValue}'.");
46
+ }
47
48
return ValidationResult.Success;
49
});
0 commit comments