DTE dte = (DTE)GetService(typeof(DTE));string solutionDir = System.IO.Path.GetDirectoryName(dte.Solution.FullName);