Signing ARM or ARM64 crossgened images fails because the images are incorrectly identified as regular managed assemblies and the SignTool task tries (and fails) to StrongName sign them.
This is most likely due to the ContentUtil.GetAssemblyName method, which uses AssemblyName.GetAssemblyName to detect whether an assembly is managed. AssemblyName.GetAssemblyName throws for x86 and x64 crossgened images, but returns a value for ARM images
|
return AssemblyName.GetAssemblyName(fullFilePath); |
Signing ARM or ARM64 crossgened images fails because the images are incorrectly identified as regular managed assemblies and the SignTool task tries (and fails) to StrongName sign them.
This is most likely due to the
ContentUtil.GetAssemblyNamemethod, which usesAssemblyName.GetAssemblyNameto detect whether an assembly is managed.AssemblyName.GetAssemblyNamethrows for x86 and x64 crossgened images, but returns a value for ARM imagesarcade/src/Microsoft.DotNet.SignTool/src/ContentUtil.cs
Line 64 in d7e189c