Also set publicsign when not on windows

This commit is contained in:
Andy Gocke 2015-11-18 00:00:31 -08:00
parent 869b927350
commit b011e7f8a4

View file

@ -142,6 +142,15 @@ namespace Microsoft.DotNet.Tools.Compiler.Csc
if (options.KeyFile != null) if (options.KeyFile != null)
{ {
commonArgs.Add($"-keyfile:\"{options.KeyFile}\""); commonArgs.Add($"-keyfile:\"{options.KeyFile}\"");
// If we're not on Windows, full signing isn't supported, so we'll
// public sign, unless the public sign switch has explicitly been
// set to false
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows) &&
options.PublicSign == null)
{
commonArgs.Add("-publicsign");
}
} }
if (options.DelaySign == true) if (options.DelaySign == true)