How to use DTE in PowerShell?

前端 未结 3 1012
一整个雨季
一整个雨季 2021-02-20 02:02

I am trying to use PowerShell to automate the process of creating an n-tier solution based on a seed (think EDMX file or DbContext) configuration. I want to be able to open a sk

3条回答
  •  無奈伤痛
    2021-02-20 02:41

    For VS 2017 it is as follows:

    $dte = [System.Runtime.InteropServices.Marshal]::GetActiveObject("VisualStudio.DTE.15.0")
    

提交回复
热议问题