snk

Build error when signing with snk key

末鹿安然 提交于 2019-12-05 04:46:39
Build error is occurring since using Visual Studio 2015. When building in Visual Studio 2015 this is occurring rarely. When building in TeamCity this occurs very often. [Error in Visual Studio 2015] Error extracting public key from file 'CompanyName.snk': The process cannot access the file 'C:\Users\UserName\AppData\Local\Temp\tmp2FF6.tmp' because it is being used by another process. CompanyName.Project.DAL D:\Projecten\CompanyName\Repository\Source\Components\CompanyName.Project.DAL\vbc http://i.stack.imgur.com/hKbbe.png [Error in TeamCity] CSC error CS7027: Error signing output with public

Why exactly does regasm warn me about signing with a strong name?

♀尐吖头ヾ 提交于 2019-12-01 17:46:01
If I want to make a .NET assembly usable as a COM server I have to add a set of attributes and then use regasm to register it as a COM server. If the assembly is not signed with a strong name regasm when run with /codebase key shows a RA0000 warning saying that the assembly could interfere with other assemblies on the same computer and I should sign it with a strong name, but registration succeeds and it even works just fine. AFAIK strong names are intended to prevent so-called DLL hell. But COM was also meant to prevent DLL hell. If I change any interface exposed to COM I must either change

PFX/PKCS12 to SNK conversion for mono

萝らか妹 提交于 2019-11-30 20:26:35
This is follow up on Mono xbuild error CS1548 - key file has incorrect format Hi, I have an application that is written in C# using VS2008. At present we are porting this app to Mac using Mono. I have tried to extract the key from the pfx file. First I used `sn -pc key.pfx key.snk` this gave me an error of 'Failed to extract public key for key pair -- Keyset does not exist'. I then used `sn -p key.pfx key.snk` this created the snk file that I wanted. I then in mono selected the project Option > Assembly Signing When built the error 'key.snk is missing private key needed for signing'. I think I

How to create a snk from pfx / cer?

本秂侑毒 提交于 2019-11-29 21:23:02
Microsoft seems to have created a certification jungle, that is hard to understand. Microsoft X.509 certificate (.cer) Personal Information Exchange (.pfx) Assembly Signature Key Attribute (.snk) Would it be advisable to create an snk file based on pfx or cer? (Not sure if its even possible, and if its possible how is it done?) While an assembly can be signed with a password protected pfx, it doesn't seem to be strong named though, unless it is signed with snk instead. But the snk has no password protection. Which one is safer to use? As I am the only developer in my project, I don't have the

What is a .snk for?

爷,独闯天下 提交于 2019-11-27 10:03:47
What is a .snk file for? I know it stands for Strongly Named Key , but all explanations of what it is and how it works goes over my head. Is there any simple explanation on how a strongly named key is used and how it works? Blair Conrad The .snk file is used to apply a strong name to a .NET assembly . such a strong name consists of a simple text name, version number, and culture information (if provided)—plus a public key and a digital signature. The SNK contains a unique key pair - a private and public key that can be used to ensure that you have a unique strong name for the assembly. When

What is a .snk for?

僤鯓⒐⒋嵵緔 提交于 2019-11-26 14:59:56
问题 What is a .snk file for? I know it stands for Strongly Named Key , but all explanations of what it is and how it works goes over my head. Is there any simple explanation on how a strongly named key is used and how it works? 回答1: The .snk file is used to apply a strong name to a .NET assembly. such a strong name consists of a simple text name, version number, and culture information (if provided)—plus a public key and a digital signature. The SNK contains a unique key pair - a private and