|
-
Dec 7th, 2003, 12:32 PM
#1
Thread Starter
Frenzied Member
Strong name key files?
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?
-
Dec 7th, 2003, 01:32 PM
#2
Why?
Hi.
Why do you want to use a relative path?
I may be wrong, but as far as I know, it's only needed when you compile.
Once the DLL is compiled the file is no longer needed, unless you need to compile it again.
I wish I could think of something witty to put in my sig...
...Currently using VS2013...
-
Dec 7th, 2003, 01:58 PM
#3
Thread Starter
Frenzied Member
This is ture - but I share the source code between many developers and it doesn't make sense to force all of us to use the same path structure.
-
Dec 7th, 2003, 02:01 PM
#4
Fair enough
Hi.
Fair enough. Can't argue with that....
Sorry I don't have a solution though...
I wish I could think of something witty to put in my sig...
...Currently using VS2013...
-
Dec 7th, 2003, 05:45 PM
#5
Addicted Member
Try
System.Reflection.Assembly.GetExecutingAssembly().Location
This will return the location (including the DLL/exe name) of the assembly being executed as a string. So just remove the dll/exe name, and add the name of the keyfile.
I've never done this in an assembly file, so unsure if it will work for sure, but give it a try.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|