Musings of Geekdom by Eric Newton

tail /var/log/thoughts
posts - 88 , comments - 41 , trackbacks - 68

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?

Print | posted on Friday, August 5, 2005 11:21 AM |

Feedback

Gravatar

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

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
Gravatar

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

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
Gravatar

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

It is excellent, the work sobstvennoya? |
while I'm alive, I will derzhot in mind your life;) zanoshu in bukmarki .... |
Comments have been closed on this topic.

Powered by: