zoukankan      html  css  js  c++  java
  • Code中获取VS对象

    (EnvDTE.DTE)System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE.10.0")
    这里90对应2008
    应用如获取解决方案目录:
    string solutionDirectory = ((EnvDTE.DTE)System.Runtime
                                                  .InteropServices
                                                  .Marshal
                                                  .GetActiveObject("VisualStudio.DTE.10.0"))
                                       .Solution
                                       .FullName;
    solutionDirectory = System.IO.Path.GetDirectoryName(solutionDirectory);
  • 相关阅读:
    开发日记1
    探索需求2
    探索需求1
    周总结8
    周总结7
    周总结6
    周总结5
    周总结4
    周总结3
    周总结2
  • 原文地址:https://www.cnblogs.com/jinzhao/p/2153237.html
Copyright © 2011-2022 走看看