.net - Assembly.Location doesn't returns dll location -
i'm looking way return assembly location @ runtime, can't use assembly.location because returns shadow-copied assembly's path when running under nunit.
use codebase property instead, return original dll location rather shadow copied dll location.
for example:
assembly assembly = gettype().assembly; uri codebaseuri = new uri(assembly.codebase); string path = codebaseuri.localpath;
Comments
Post a Comment