*Experts* Merrion Posted December 7, 2003 *Experts* Posted December 7, 2003 Is there any way to use a relative path for your strong name key file for an assembly? I currently have: <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? Quote Printer Monitor for .NET? - see Merrion Computing Ltd for details
*Gurus* divil Posted December 7, 2003 *Gurus* Posted December 7, 2003 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! Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
MadHatter Posted December 8, 2003 Posted December 8, 2003 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. Quote
*Gurus* Derek Stone Posted December 8, 2003 *Gurus* Posted December 8, 2003 Merrion is using VB.NET, MadHatter. There is no need to escape anything, short of double quotes. Quote Posting Guidelines
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.