Where is Developer Command Prompt for VS2013?

后端 未结 9 1139
余生分开走
余生分开走 2020-11-27 08:51

I need to run web.exe file from my developer command prompt in Visual Studio 2013. By default, the command prompt is not installed in Visual Studio 2013.

Previously,

相关标签:
9条回答
  • 2020-11-27 09:28

    I'm using VS 2012, so I navigated to "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Visual Studio 2012\Visual Studio Tools" and ran as administrator this "Developer Command Prompt for VS2012" shortcut. In command shell I pasted the suggested

    aspnet_regiis -i

    and as I suspected this did not yield any success on Windows 10:

    So all I needed to do was "Turn Windows Features On/Off" at Control Panel and restart my machine to effect the changes. That did resolve the issue. Thanks.

    0 讨论(0)
  • 2020-11-27 09:29

    Works with VS 2017
    I did installed Visual Studio Command Prompt (devCmd) extension tool.
    You can download it here: https://marketplace.visualstudio.com/items?itemName=ShemeerNS.VisualStudioCommandPromptdevCmd#review-details

    Double click on the file, make sure IDE is closed during installation.
    Open visual studio and Run Developer Command Prompt from VS2017

    0 讨论(0)
  • 2020-11-27 09:35

    Visual studio command prompt is nothing but the regular command prompt where few environment variables are set by default. This variables are set in the batch script : C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat . So basically to get a visual studio command prompt for a particular version, just open regular command prompt and run this batch script : C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat (Change the visual studio version based on your installed version). Voila you have got the visual studio command prompt. You can write a script to run the batch file and open cmd.exe.

    0 讨论(0)
  • 2020-11-27 09:36

    Since any solution given so far will open the command prompt on the project folder, you would still have to navigate to the project's folder. If you are interested in getting the command prompt directly into the project's folder, here is my 2 steps:

    1. Right-click in solution explorer on the project name (just under the solution name) and choose the command "Open Folder in File Explorer"
    2. Once the Windows Explorer is open, just type in the address bar "cmd" and then hit enter!

    Et voila! Hope that helps

    0 讨论(0)
  • 2020-11-27 09:39

    From VS2013 Menu Select "Tools", then Select "External Tools". Enter as below:

    • Title: "VS2013 Native Tools-Command Prompt" would be good
    • Command: C:\Windows\System32\cmd.exe
    • Arguments: /k "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat"
    • Initial Directory: Select as suits your needs.

    Click OK. Now you have command prompt access under the Tools Menu.

    0 讨论(0)
  • 2020-11-27 09:46

    I used a modified version of this answer - based on my experiences adding it to VS 2010:

    1. Select Tools >> External Tools in Visual Studio
    2. Click Add
    3. Title: I use Visual Studio Command &Prompt
      • &P Makes P a alt-shortcut key (when menu active)
      • I originally used C, but that conflicts with the existing shortcut for Customize
    4. Command: C:\Windows\System32\cmd.exe
    5. Arguments: \k "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\vsvars32.bat
      • /k keeps a secondary session active so the window doesn’t close on the .bat file
    6. Initial Directory: I use $(ProjectDir) (from the dropdown)
    7. Click OK.

    Now you have command prompt access under the Tools Menu.

    See also: Add command prompt to Visual C# Express 2010

    0 讨论(0)
提交回复
热议问题