Strong name key files

Merrion

Junior Contributor
Joined
Sep 29, 2001
Messages
265
Location
Dublin, Ireland
Is there any way to use a relative path for your strong name key file for an assembly? I currently have:
Code:
<Assembly: AssemblyKeyFile("C:\Merrion Computing\Customers\Cooperation\Microsoft\EMFSpoolfileReader\EMFSpoolfileReader.snk")>

But if I take out the absolute path the compiler throws a hissy fit. Ideas?
 
It does work, and it looks for the file in either the solution, project or build directory - I can't remember which. Also, if it fails to find it one time it sometimes takes a restart of the IDE to make it find it the next time, assuming you moved the file. So a lot of trial and error was necessary on my part when I did this!
 
you have to escape your string @"full path to snk"

you can use a relitive path also @"..\..\snkey.snk" will do it if you have your key in the base project folder.
 
Back
Top