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);
  • 相关阅读:
    oracle_case when
    sql记录
    修改tomcat默认编码
    sql server_TED(透明数据加密)
    web请求过程
    freemarker 标签循环list 以及获取下标值
    鼠标操作
    窗口切换
    日历控件
    xpath定位
  • 原文地址:https://www.cnblogs.com/jinzhao/p/2153237.html
Copyright © 2011-2022 走看看