Jump to content
Xtreme .Net Talk

Recommended Posts

  • *Experts*
Posted

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?

Printer Monitor for .NET? - see Merrion Computing Ltd for details
  • *Gurus*
Posted
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!

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...