In .NET platform, 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 digital signature. It is generated from an assembly file (the file that contains the assembly manifest, which in turn contains the names and hashes of all the files that make up the assembly), using the corresponding private key.
Questions tagged [strongname]
355 questions
12
votes
4 answers
Assembly has a strong name, but I"m getting the error that says a strong name is needed
I am trying to load a third party COM dll into my application. Everything builds fine but when I run the application I keep getting this message from my application:
Could not load file or assembly '"assembly", Version=1.0.0.0, Culture=neutral,…

Mykal73
- 478
- 4
- 6
- 18
10
votes
2 answers
Remove the strong name from 3rd party assemblies?
How can I remove a strong name from a 3rd party assembly that I do not have the source code for, maybe using ilasm/ildasm (since it is possible to add a strong name using ilasm/ildasm)?
Generally, it seems to be possible, since this tool seems to be…

bitbonk
- 48,890
- 37
- 186
- 278
10
votes
1 answer
proper way to sign .net core assembly
I'm trying to sign a .net core lib, and I'm just not sure if I did everything correctly
1) using VS Command Promp I called sn -k mykey.snk
2) copied mykey.snk to myproject folder
3) in project.json added keyfile
"frameworks": {
…

Omu
- 69,856
- 92
- 277
- 407
10
votes
3 answers
What is the recommended way to manage a strong-name key pair for an open-source project?
I manage an open-source project and would like to sign the binaries that are released in the project's binary package. I use Visual Studio csproj and sln files to manage and build my project, and also distribute these files as part of the project's…

Steve Guidi
- 19,700
- 9
- 74
- 90
9
votes
3 answers
Should interop assemblies be signed?
We have a set of COM components developed in VC++. When a reference to such component is added to a .NET project Visual Studio generates an interop assembly. We have a set of such assemblies now.
While running our daily build we sign all the…

sharptooth
- 167,383
- 100
- 513
- 979
9
votes
3 answers
Deserialize object into assembly that is now signed and versioned
I used to serialize a treeview with the BinaryFormatter (c#). The Assembly that did just that and which contains the all the serializable classes has now a strong name and is signed and also got a new version number (however, implementation didn't…

Mephisztoe
- 3,276
- 7
- 34
- 48
9
votes
1 answer
Signing F# Assembly
I'm having a lot of trouble trying to sign a F# class library project.
First I've tried this thread, using the AssemblyKeyFileAttribute but had no success.
I also tried to add the flag "--keyfile:keyfile.snk" to the project properties ("Other Flags"…

Vinícius Oliveira
- 328
- 1
- 10
9
votes
2 answers
Signing an F# Assembly (Strong name component)
I found this article on CodeProject:
http://www.codeproject.com/Articles/512956/NET-Shell-Extensions-Shell-Context-Menus
and thought it would be nice to give it a try, but in F#. So I came up with the following code:
open System
open System.IO
open…

LA.27
- 1,888
- 19
- 35
9
votes
4 answers
I can't seem to understand this .NET assembly signing thing
Ok, I must be dumb cause I've already read this:
http://www.csharp411.com/net-assembly-faq-part-3-strong-names-and-signing/
And I still don't get it...
Let's say I open my project's properties and go to the "Signing" tab, then I check "Sign the…

rfgamaral
- 16,546
- 57
- 163
- 275
8
votes
2 answers
location of .snk file and management of it
I am currently setting up my .net libraries to be signed with a strongly typed key. I am using .snk file to sign my dll's on a per solution basis. So for each solution, it has its own .snk file. Is this correct practice? For example I have a class…

amateur
- 43,371
- 65
- 192
- 320
8
votes
3 answers
benefit of signing dll with strong name
I have a c# solution that contains multiple c# class libraries. I am being doing some research recently and it is suggested that the outputted assemblies from my libraries should be signed, making them signed with a strong name. Firstly I am…

amateur
- 43,371
- 65
- 192
- 320
8
votes
2 answers
Quite special PublicKey in .NET core assemblies
I've noticed that core .NET assemblies have PublicKey = 00000000000000000400000000000000. Not only it's shorter then those sn.exe allows to generate (min 384 bits) but also it has a lot of zeros.
How to generate signing key with such a fancy public…

Kirill Kovalenko
- 2,121
- 16
- 18
8
votes
1 answer
StrongNaming with InternalsVisibleTo tag fails when SHA256 used
When using
C# Strongnames on DLLs and
using the InternalsVisibleTo tags and
when the public key uses SHA256 (or SHA512)
We're noticing that the compile process fails as if the InternalsVisibleTo tags were never even declared. The error we get is…

DeepSpace101
- 13,110
- 9
- 77
- 127
8
votes
2 answers
How do I use ServiceStack from a strongly named host?
I have a code base which requires strong names.
At first, I thought this was going to be an easy fix, as I simply assigned strong names to the ServiceStack assemblies I needed. This failed due to inter-dependencies within ServiceStack on weak…

Hotrodmonkey
- 2,924
- 3
- 20
- 25
8
votes
1 answer
Do Visual Studio Extensions (VSIX) need to be strong named?
The default VSPackage template in the Visual Studio 2012 SDK generates a project which uses strong naming.
Because strong naming is transitive, this means that any references I add (e.g. another project in the same solution, or a third-party…

Roger Lipscombe
- 89,048
- 55
- 235
- 380