Visual Studio的插件 - 寻找当前解决方案的文件夹路径 [英] Visual studio addin - finding current solution folder path
本文介绍了Visual Studio的插件 - 寻找当前解决方案的文件夹路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个外接加载,并加载一个解决方案,我将如何找到C#编程该解决方案的文件夹路径在我的插件?
I have an add-in loaded, and a solution loaded, how would I find the folder path of that solution programmatically in C# in my addin?
推荐答案
唉!我想通了很多goooogling!
Alas I figured it out after a lot of goooogling!!
在connect.cs后:
In connect.cs:
public String SolutionPath()
{
return Path.GetDirectoryName(_applicationObject.Solution.FullName);
}
这篇关于Visual Studio的插件 - 寻找当前解决方案的文件夹路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文