strongname

What is the recommended way to manage a strong-name key pair for an open-source project?

岁酱吖の 提交于 2019-12-05 22:55:48
问题 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 source packages. How can I sign the produced binaries of my build and not have to distribute the snk key-pair file? If I use Visual Studio to sign the assemblies, each project file now needs a copy of the key-pair in order to build. I'm not

How do I strongly name an Unmanaged C++ Dll?

梦想与她 提交于 2019-12-05 11:02:02
I'm working on a C# application which uses the EasyHook library for DLL Injection. EasyHook requires that any application using it be strongly named. In order to strongly name the application I need to make sure that all the libraries I use are strongly named as well. This is easy to do for all of my managed libraries, but I also have an unmanaged c++ library which I need to strongly name. After some searching I can't seem to find a way to sign my unmanaged dll, even with the source code. Can this be done, and if so what do I need to do? Thanks for any suggestions or assistance! I assume that

proper way to sign .net core assembly

久未见 提交于 2019-12-05 05:40:11
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": { "netstandard1.6": {} }, "buildOptions": { "outputName": "MyLib", "keyFile": "mykey.snk" } is this correct, is the library (dll) going to be usable on both .net core and full .net 4.6 apps ? Yes, this is the correct way. If you look into any ASP.NET Core projects, like Logging , you will find "buildOptions": { "keyFile": "../../tools/Key.snk" ... } in project.json file,

How can I see the strong name of my assembly?

落爺英雄遲暮 提交于 2019-12-04 23:44:26
I have a project, and I created a strong name key file for it. How can I tell what the strong name of my assembly is? It seems this should be obvious, but I can't find any reference to it. You can get the Fully Qualified Name by using a tool like Reflector or ILSpy. Select the assembly and it should be in top of it. For XNA in ILSpy : // C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.dll // Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553 If you don't want to use those tools, you can figure out

Unmanaged C++ - need strong name to be referenced by C++/CLI dll with strong name?

可紊 提交于 2019-12-04 15:41:23
I have a unmanaged C++ dll, which will be used by a managed C++/CLI wrapper .dll, which will eventually be used by a C# project. C# project is strong-named, so is the wrapper .dll. I tried doing the same for the unmanaged dll, using /KEYFILE, but doesn't seem to work. And the wrapper is complaining: .... is a strong-name signed assembly and embedding a manifest invalidates the signature Do I need to strong-name the unmanaged C++ at all? If not, how do I resolve this issue? It is not possible to strong-name a native DLL. Most of all because doing so is meaningless, only the CLR will ever

What is the recommended way to manage a strong-name key pair for an open-source project?

孤街醉人 提交于 2019-12-04 05:03:58
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 source packages. How can I sign the produced binaries of my build and not have to distribute the snk key-pair file? If I use Visual Studio to sign the assemblies, each project file now needs a copy of the key-pair in order to build. I'm not comfortable with distributing the key-pair, even if it is password protected. Edit : Another caveat is that

Signing my assembly with a strong name stops it from working

有些话、适合烂在心里 提交于 2019-12-04 01:10:53
A colleague of mine created an assembly in VB.net for use with JScript via COM interop. The assembly used to work fine, but we signed it and now it only seems to work on Windows 7 machines. I've tested 2 Windows 7 machines and 2 Windows Vista machines. When we signed the assembly and we try to instantiate the ActiveX object in JScript, an error is returned with no message and only a number: Error: Error number: -2146234304 A search on Google for the error number didn't return much. If we remove the strong name from the assembly, it works just fine. Any ideas on what could be the problem? Not

Do Visual Studio Extensions (VSIX) need to be strong named?

霸气de小男生 提交于 2019-12-03 17:41:40
问题 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 dependency) also need to be strong named. Since I don't feel comfortable strong-naming third-party dependencies, I'd prefer to remove the strong naming from my VSIX. What are the disadvantages of doing this? 回答1: If you are already VSIX-deployable and don

How to Disable Strong Name Verification for All .Net assembly?

帅比萌擦擦* 提交于 2019-12-03 17:09:28
问题 How to Disable .Net Strong Name Verification for All .Net assembly in system by config .net framework or IIS or project's config? (click for larger image) 回答1: Try add it in regestry : OS x32: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\StrongName\Verification\*,af24b530b87e22f1] OS x64: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\StrongName\Verification\*,af24b530b87e22f1] [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\StrongName\Verification\*,af24b530b87e22f1] and add it to your Web.config :

.Net 4 constantly wasting one CPU core on StrongNameSignatureVerification

╄→尐↘猪︶ㄣ 提交于 2019-12-03 16:04:52
问题 We have a mixed mode assembly application (MFC+WinForms) running on .Net 4, Windows 2008 R2 that constantly uses 100% cpu on one thread. Using ProcessExplorer we see the following stack on the busy thread. We can also see another 10 threads using just 0.01% CPU that are running clr.dll!StrongNameSignatureVerification. The spinning thread doesn't prevent the rest of the application from running but wastes CPU time. The stack trace of the busy thread is as follows: ntoskrnl.exe