Please see the code below:
string test = System.IO.Directory.GetCurrentDirectory();
Up to today; test would return the directory of my project i.e. C:\MySolution
The MySolution folder contains MySolution.sln.
Now it returns: "C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\Common7\\IDE"
What is the problem? I have spent time Googling this and I have also looked here: https://msdn.microsoft.com/en-us/library/system.io.directory.getcurrentdirectory(v=vs.110).aspx