c# - Get the assembly path but not the temporary path where the assembly is running -
i breaking head simple unit testing writing!
[testfixture] class { [testmethod] public void test() { assembly.getexecutingassembly().location // gives temporary local path } }
all want path of assembly location (where project folder resides) not local or temporary folder.
this folder if put breakpoint: \appdata\local\temp\
any appreciated!
edit: tried doing both nunit mstest microsoft's unit testing! nothing helps.
did try
appdomain.currentdomain.basedirectory
Comments
Post a Comment