Comments
3 comments
-
Embedded assemblies have no useful location to tell you. They aren't decompressed to a temporary location or anything, they are simply loaded from memory.
-
yes, but it's 'host' assembly must have a location.
Is there any way to get at that? -
Assembly.CodeBase is still set.
string codeBase = assembly.CodeBase;
string localPath = new Uri(codeBase).LocalPath;//NOTE: assembly.Location will often be "" because of {SA}
I'm not sure if this behaviour is guaranteed in {SA}
Add comment
Please sign in to leave a comment.
The following code: blows because Location is "".
What do I do to get the assembly location?
thanks
Matt