Questions tagged [snk]

In the .NET framework, a Strong Name Key (SNK) is used to sign an assembly with a strong name.

In the .NET framework, a Strong Name Key (SNK) is used to sign an assembly with a strong name.

http://msdn.microsoft.com/en-us/library/xc31ft41%28v=vs.110%29.aspx

38 questions
3
votes
5 answers

mscorsn.dll doesn't load when using ILMerge

I'm using the following command on cmd with Administrator priviliges: ILMerge.exe /wildcards /log:ILMerge.log /allowdup /targetplatform:"v4,C:\Windows\Microsoft.NET\Framework\v4.0.30319" /lib:"C:\SDK2016\SDK2016\Bin" …
rebulanyum
  • 487
  • 10
  • 21
2
votes
0 answers

Calculating the public key token from a pfx file

I would like to calculate the public key token from a pfx file and make sure that it matches the public key token of a signed assembly, but I keep running into the following issues and would love some help on how to fix it. From within the signed…
Liz Baron
  • 21
  • 3
2
votes
1 answer

Creating a custom .SNK file

How can we generate a custom .SNK file (used to sign an assembly with a strong name), if I already have my private/public key pair (in arbitrary format, but for the sake of the clarity, let's say we've generated it on linux, using ssh-keygen)?
Mladen B.
  • 2,784
  • 2
  • 23
  • 34
1
vote
0 answers

error MSB3326: Cannot import the following key file XXXXXXSigningKey.snk

While Building solution on TeamCity Server I am getting below error C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(2718,5): error MSB3326: Cannot import the following key file: XXXXXXSigningKey.snk. The key file may…
Naveen Aggarwal
  • 123
  • 1
  • 3
  • 8
1
vote
0 answers

Migrate existing key container for strong naming

How can I migrate a key container from one machine to another? I have a key container on an old machine that is used for strong naming assemblies. Currently I am in the process of migrating the project to a newer machine. Unfortunately the key…
HHLV
  • 119
  • 2
  • 10
1
vote
2 answers

I accidentally changed the program associated with the .snk extension

Which program should be associated with the .snk extension. I accidentally changed the association and don't know what it was prior to my change. I want to set it back.
bobinski
  • 99
  • 1
  • 11
1
vote
0 answers

How to convert snk to pfx using PowerShell?

This answer here gave a method for converting a pfx to snk using powershell (wrapped around the System.Security.Cryptography methods). How would I do the reverse, convert a .snk file to .pfx? I can read the .snk file with Get-Content, and somehow…
deitch
  • 14,019
  • 14
  • 68
  • 96
1
vote
1 answer

Managed C++ Error when using a snk file:: "missing the private key needed for signing"

Why am I getting this error when trying to sign a Managed C++ project using a .snk file. "......SlimDX\build\vs2010\x86\Debug\VOS.snk' is missing the private key needed for signing" Iv'e tried setting it in the project settings:: Key File…
zezba9000
  • 3,247
  • 1
  • 29
  • 51
1
vote
1 answer

Why move the key.snk file to the Properties folder in Sharepoint projects?

It is "de rigeuer" here to move the key.snk file generated when a new project is created from its default location at the bottom of the Solution up into the Properties folder. This is not just a local "superstition"; it seems to be the "accepted…
1
vote
1 answer

Assembly generation failed -- Referenced assembly 'Google.Apis' does not have a strong name

Not sure if many of you have tried this but I've created a component using Google's .net and referenced one of their .dlls. I am using a classic .asp as my interface to upload a document to the Google Drive and in order for the classic .asp to talk…
1
vote
1 answer

Can I reset my .snk file password?

I am now taking over an existing sharepoint project which has been developing in a VM enviroment . I have to enter into the VM enviroment under a specified account. Because there is no one know the .snk file password now. (The creator had left) I…
shenhengbin
  • 4,236
  • 1
  • 24
  • 33
1
vote
1 answer

NUnit unable to load dll with String Key Name

I have a project in which I have some C# classes which I am building using csc in my ant script. I have also have written some unit tests which I want to test with NUnit2.6, My test class and actual class refer to one DLL which is compiled with…
SJunejo
  • 1,316
  • 4
  • 23
  • 39
0
votes
1 answer

make use of the snk file

Whatever I download, source code, e.g. NHibernate, or .dll file, e.g. NHibernate.Caches.SysCache, there are the .snk file. What does this mean? For source code, I just delete the snk file and compile them directly, it works. But is there anything I…
freeflying
  • 215
  • 3
  • 12
0
votes
2 answers

Export snk from non-exportable key container

I have created a snk file using sn -k KeyFile.snk I installed it on my test machine and signed a couple of files for use as a license file. I exported the public key and embed it in my application in order to verify the license. Now the problem…
ElArZ
  • 25
  • 5
0
votes
2 answers

How do I use snk file to sign data in PHP?

How to convert the .snk RSA keypair file used to sign the .NET assemblies to XML based files that can be used with PHP or other software? XML file…
Priyank Bolia
  • 14,077
  • 14
  • 61
  • 82