Skip to content

Instantly share code, notes, and snippets.

@dck-jp dck-jp/GetSlnDir.csx
Created May 19, 2016

Embed
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
You can’t perform that action at this time.