Skip to content

Instantly share code, notes, and snippets.



Created May 19, 2016
What would you like to do?
Get SolutionDirectory @ C# Interactive in VS2015
#r "EnvDTE"
var solutionFilePath = ((EnvDTE.DTE)System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE.14.0")).Solution.FullName;
var solutionDirectory = System.IO.Path.GetDirectoryName(solutionFilePath);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment