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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -