How can I use PowerShell with the Visual Studio Command Prompt?

前端 未结 9 1712
一向
一向 2020-12-02 03:44

I\'ve been using Beta 2 for a while now and it\'s been driving me nuts that I have to punt to cmd.exe when running the VS2010 Command Prompt. I used to have a nice vsvars200

9条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-02 04:28

    I like to pass the commands into a child shell like so:

    cmd /c "`"${env:VS140COMNTOOLS}vsvars32.bat`" && "
    

    Or alternatively

    cmd /c "`"${env:VS140COMNTOOLS}..\..\VC\vcvarsall.bat`" amd64 &&  && "  
    

提交回复
热议问题