I've recently noticed that if your source code that you are running in VS 2010 or 12 is not located on same drive as to where your IDE of choice is running, then some weird behaviors can be observed.
var location = Assembly.GetExecutingAssembly().Location;
I have a simple MSTest unit test that runs the above and yeilds the below:
C:\Users\Ibrar\AppData\Local\Temp\ckiwsrev.qh0\A-----.Main.Tests\assembly\dl3\7e61424f\b0b1ebcc_318ace01\A----.Main.Tests.dll
Even though my source code is located on an external drive ... can any one shed any light on why this seems to be getting copied and pasted into the AppData folder and ran from there?
Is there anywhere of forcing VS to run the tests from where the source code folder is located?
I suspect it may have something to do with trust, security and permissions?
Linked Questions/Same Questions: How can I get “Copy to Output Directory” to work with Unit Tests?