question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error signing output with public key from file 'x.snk' -- Assembly signing not supported

See original GitHub issue

I am moving a .net full project to .net standard 2.0 with a.netcore 2.0 unit test projects. They both use a snk to strongly sign the binaries.

<SignAssembly>True</SignAssembly><AssemblyOriginatorKeyFile>wol.snk</AssemblyOriginatorKeyFile>

When building the .net standard 2.0 project, i get:

CSC : error CS7027: Error signing output with public key from file 'wol.snk' -- Assembly signing not supported. [.../Source/proj/projA/projA.csproj]

Any idea?

Environment data

dotnet --info output:

.NET Command Line Tools (2.0.0-preview1-005977)

Product Information:
 Version:            2.0.0-preview1-005977
 Commit SHA-1 hash:  414cab8a0b

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  10.12
 OS Platform: Darwin
 RID:         osx.10.12-x64
 Base Path:   /usr/local/share/dotnet/sdk/2.0.0-preview1-005977/

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.0-preview1-002111-00
  Build    : 1ff021936263d492539399688f46fd3827169983

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
nguerreracommented, Jun 21, 2017

@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.

See https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/public-signing.md

There are plans to support full signing on non-Windows (dotnet/roslyn#8210), but the work has not been completed.

0reactions
RehanSaeedcommented, Jan 27, 2020

Since https://github.com/dotnet/roslyn/issues/8210 is now completed, I assume this works now?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build error when signing with snk key
CSC error CS7027 : Error signing output with public key from file 'CompanyName.snk' -- The process cannot access the file 'C:\BuildAgents\Gamma\ ...
Read more >
Error signing output with public key from file 'x.snk' - ...
I am moving a .net full project to .net standard 2.0 with a.netcore 2.0 unit test projects. They both use a snk to...
Read more >
[CS7027] Error signing output with public key from file '..\Key.snk'
It seems relative signing key paths are not processed correctly when Rider is performing compilation in Edit & Continue mode. Version: RD-191.6733.985
Read more >
Error signing output with public key from file &#39;--Assembly ...
Coding example for the question How to fix the build error ''Error signing output with public key from file '--Assembly.snk' -- File not...
Read more >
CS7027 error signing output with public key from file ' ...
The error appears to be spurious. The author of this wonderful code used a hard reference to a sub-directory in the build parameters....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found