.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

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -