Blog Stats
  • Posts - 80
  • Articles - 1
  • Comments - 28
  • Trackbacks - 71

 

Visual Studio 2.0 and Signing with Strong name keys

So the “new” way is to specify Signing in the projects' properties.

You can easily Sign the assembly with a key file by convieniently setting this nice project setting here.

Except for major failures.

A) Why does VS insist on copying the Strong name key into every project that uses it?  Last I heard you should “build the key and throw away the HD on which you did it...”   (Somewhat of overkill to throw out the hard drive, IMO)   Ok, so that being said, now we have VS merrily copying the Key to N directories.  Smart idea if the “Strong Name Key” is so sensitive.

B) Why generate a warning about the AssemblySign attribute?  AssemblySign is a better solution because you're tying the Strong Name Key to the ASSEMBLY and not the PROJECT.  Whats the point of Obsoleteing the attribute?  IMO the Project Settings should USE that value if present.

So whats the deal here?


Feedback

# re: Visual Studio 2.0 and Signing with Strong name keys

Gravatar I think the fact that VS copies the key is really some weird kind of bug. It didn't use to do that in earlier (pre beta 2) CTPs and with beta 2 you can actually see that VS puts a wrong path (= different from the one you entered) in the project file. Correct the path in the project file manually and the key is loaded from its real location without further problems.

The AssemblySign attribute actually still works, the ObsoleteAttribute on it only generates a warning, not an error. Still, I like the old approach better, too. 8/5/2005 12:16 PM | Oliver Sturm

# ProjectProperties->Signing vs AssemblyInfo

Gravatar ProjectProperties->Signing vs AssemblyInfo 8/6/2005 6:01 AM | Daniel Moth

# re: Visual Studio 2.0 and Signing with Strong name keys

Gravatar how to make Strong name to assambaly. for GAC.
whithout using sn -k at command line.

just using Visual Studio 2005 4/12/2007 12:42 AM | snehal kadiya

Post a comment





 

Please add 3 and 6 and type the answer here:

 

 

Copyright © Eric Newton