Can't install assembly to cache?

I am trying to add an assembly to the cache on the Visual Studio 2010 command line. I am getting this error "Error adding assembly to cache: trying to install assembly without strong name". I am adding an assembly ListTasks2.dll from a WCF Service Application called ListTasks2. I've never had this problem with a similarly named project, so why is it raising the issue now?

NOTE. I tried to sign it in Visual Studio but it still doesn't work. I wonder if this could be a permission issue. I used different user credentials and was able to add the assembly. The trick is that I downloaded the VS solution and this project signed the assembly. Should I just create a key pair?

+6


source to share


3 answers


Only strong named nodes can be installed in the GAC. For information on how to create a strong-named assembly, see How to register a strong-named assembly.



+8


source


It seems that this question is much more complicated and more roundabout than it should be.

I found a really achievable solution here:



http://codeingaddiction.blogspot.com/2011/06/how-to-add-strong-name-to-existing-dll_16.html

In order for this to work easily, I changed the directory to C:\temp

- for me it worked much better than launching directly in the specified folder, probably due to the fact that file permissions were more accessible somewhere like that.

0


source


u can create SNK or PFX for libaray class and then add to gacutil via VS Prompt command

-1


source







All Articles