Skip to content

Can I request the VS dev cmd environment when not using cl.exe as the compiler? #3486

Closed Answered by gcampbell-msft
tristanlabelle asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @tristanlabelle!

Currently, there is not a way for you to do this explicitly. This is very closely related to an issue that has gotten a lot of attention from the community: #1836.

This experience is something that we're prioritizing for an upcoming release. This is a known area of frustration and we are thinking and working on how to improve this for users.

Some possible workarounds include the following:

  1. You could modify your CMakePresets.json to modify the PATH to include the things you need like ninja, and cl.exe.
  2. You could create a CMakeUserPresets.json that would help add the things you need from the dev cmd.
  3. You could launch VS Code from a dev cmd prompt.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tristanlabelle
Comment options

@gcampbell-msft
Comment options

@tristanlabelle
Comment options

Answer selected by gcampbell-msft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants