我正在VSIX项目上工作,我想在其中获取在VS IDE(或实验窗口)中正在编辑的当前文件名和路径(相对于项目)?我该怎么办?
当前文件名和路径:dte.ActiveDocument.FullName;
dte.ActiveDocument.FullName;
解决方案目录:System.IO.Path.GetDirectoryName(dte.Solution.FullName);
System.IO.Path.GetDirectoryName(dte.Solution.FullName);