I have been trying to learn C recently. I've been using VS Code and run into a big problem. The start menu does not show a Developer Command Prompt and so I can't compile the code. I have searched everywhere for this program, I don't even have a folder named "Microsoft Visual Studio" under my Program Files (x86). I already tried reinstalling the software and nothing changes.
My problem: I can't find the VS Developer Command Prompt, which I would like to use to compile my code.
Start in Visual Studio On the menu bar, select Tools > Command Line > Developer Command Prompt or Developer PowerShell.
A. It's easy to type exit in your command prompt window in a server core session, and if you do that then you have no interface. To get it back, press Ctrl+Alt+Del, select Task manager, go to the Tasks tab, click the New Task... button, and enter the task cmd.exe.
You can simply go to Menu > All Programs > Visual Studio 2013. Select the folder link "Visual Studio Tools". This will open the folder. There is bunch of shortcuts for command prompt which you can use.
To open the Developer Command Prompt for VS, start typing 'developer' in the Windows Start menu, and you should see it appear in the list of suggestions. The exact name depends on which version of Visual Studio or the Visual Studio Build Tools you have installed. Select the item to open the prompt.
VSCode is much more light-weight and is, in essence, a completely different product. VSCode doesn't ship with a complete setup of MsBuild and of the compiler frameworks that ship with the full version of Visual Studio. You can install these alongside VSCode if You need them by installing "Build Tools for Visual Studio 2017", you can find the installer all the way at the bottom of the Visual Studio download page.
With these tools installed, you should be able to build your code. I'm not 100% convinced this will bring back the Visual Studio Developer Command Prompt
, but what this command prompt has which makes it work, is a number of pre-configured path statements to the right version of msbuild.exe
and locations of other tools required to compile a .NET application. Manually configuring your user's PATH environment variable should work as well, after installing the right set of tools and SDKs.
Some variables that you may depend on, like:
VCIDEInstallDir=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\
VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\
VisualStudioVersion=15.0
VS150COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\
VSCMD_ARG_app_plat=Desktop
VSCMD_ARG_HOST_ARCH=x86
VSCMD_ARG_TGT_ARCH=x86
VSCMD_VER=15.5.3
VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\
VSSDK150INSTALL=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VSSDK
Have no direct equivalent in VSCode. If you are reliant on these, you'll need to also install Visual Studio (Community | Pro | Enterprise) on the same machine, or you will need to change your build scripts to break this dependency on items that are specific to the Visual Studio IDE.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With