Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在制作 Visual Studio 包,我需要知道打开的解决方案名称和配置。我怎样才能得到这些信息?
谢谢
如果您有对 EnvDTE 的引用,则可以使用dte.Solutionand dte.Solution.SolutionBuild.ActiveConfiguration。
dte.Solution
dte.Solution.SolutionBuild.ActiveConfiguration