VisualStudio.DTE 对象可以通过检索 GetService() 方法

时间:2023-11-23 13:52:56

DTE dte = (DTE)GetService(typeof(DTE));

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

相关文章