Use PowerShell for Visual Studio Command Prompt

前端 未结 5 1520
故里飘歌
故里飘歌 2021-01-30 23:33

In a serious intiative to migrate all my command line operations to PowerShell, I would like to avoid using the old fashioned command console for anything. However, the Visual

5条回答
  •  忘掉有多难
    2021-01-31 00:21

    What I do is create a simple cmd batch command script that looks like this:

    call "%VS80COMNTOOLS%vsvars32.bat"
    powershell
    

    Then I create a shortcut that invokes this through cmd. The shortcut target looks like:

    %windir%\System32\cmd.exe /k "SetupPSBuildEnvironment.cmd"
    

    If you want the console to look like the powershell console, just modify the Layout to your liking in the shortcut properties.

提交回复
热议问题