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.

Sign the assembly with a strong name key

See original GitHub issue

Is your feature request related to a problem? Please describe. If I reference this assembly from an assembly that is signed with strong name key file, I receive the following warning from the compiler:

CS8002: Referenced assembly 'Blazored.LocalStorage, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have a strong name.

Describe the solution you’d like The assembly needs to be signed with a strong name key file (see the Signing tab in the Project Properties dialog in Visual Studio) to resolve this warning for any signed projects that reference this library.

Describe alternatives you’ve considered Unsigning my assembly. Not ideal, as it is best practice to sign .Net assemblies (see https://docs.microsoft.com/en-us/dotnet/standard/library-guidance/strong-naming)

Additional context I am happy to create a pull request with this change (it is a straightforward change).

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
chrissaintycommented, Apr 22, 2021

@pmachapman I’ve asked where Egil is on this. If he isn’t happy about signing bUnit, then I don’t think there is much point in signing Blazored. We’ll have to see what he comes back with.

0reactions
pmachapmancommented, Apr 22, 2021

Yes I get the warning for the v4 branch - didn’t think to test the v4 branch - d’oh!

Looks like it is an issue they are aware of since Feb: https://github.com/egil/bUnit/issues/316

Read more comments on GitHub >

github_iconTop Results From Across the Web

Strong-named assemblies
You can strong-name assemblies by using Visual Studio or a command-line tool. For more information, see How to: Sign an assembly with a...
Read more >
Sign strong name assemblies with SignTool
A strong name consists of the assembly's simple text name, version number, and culture information (if provided), a public key and, a digital...
Read more >
Creating new key file to strongly name an assembly does ...
Create new key "mykey.pfx" with password from choose a strong name key file as above · add strong name to your key file...
Read more >
Create and use strong-named assemblies
A strong name consists of the assembly's identity—its simple text name, version number, and culture information (if provided)—plus a public key and a...
Read more >
How to create Strong named assemblies in .NET
Open the properties of each project, and in the signing tab, sign the project with your key. StrongNameSnk04. Now all projects are strong...
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