Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Error signing output with public key from file 'x.snk' -- Assembly signing not supported #6911
I am moving a .net full project to .net standard 2.0 with a.netcore 2.0 unit test projects.
When building the .net standard 2.0 project, i get:
changed the title from
Error signing output with public key from file 'wol.snk' -- Assembly signing not support
Error signing output with public key from file 'x.snk' -- Assembly signing not supported
Jun 16, 2017
This is strange. We do this ourselves all the time with our assemblies in the CLI repo: https://github.com/dotnet/cli/blob/release/2.0.0/src/dotnet/dotnet.csproj#L8-L10.
Would it be possible for you to share a repro repo with us? Though, I see that this happens only on non-windows. if that's the case, you are probably missing this:
@livarcocc my bad, the public sign does the trick. I had kept the
could you please explain what will this PublicSign does? (or does not do)
@Jonathan34 Excellent question. There are consequences. Public signing is like delay signing: only the public key is needed and the binary is not actually signed with the private key. The only difference is a bit in the PE that allows most scenarios to run without registering for skip verification. However, since the binary is not actually fully signed, it cannot be installed to the GAC, cannot be used with shadow copying, and cannot be loaded in a partial trust context on full framework.
There are plans to support full signing on non-Windows (dotnet/roslyn#8210), but the work has not been completed.