microsoft / vcpkg-docs

MIT License
56 stars 74 forks source link

No mention that you need to run VS code from the developer prompt #398

Closed s7evinkelevra closed 2 months ago

s7evinkelevra commented 2 months ago

Type of issue

Code doesn't work

Description

It appears that it is required to run VSCode from the developer prompt (or have a equivalent setup in the system path), otherwise the setup just doesn't work. Nowhere is this mentioned in the docs. I'm thinking i'm missing something obvious here, otherwise this would be a major oversight.

Page URL

https://learn.microsoft.com/en-us/vcpkg/get_started/get-started-vscode

Content source URL

https://github.com/Microsoft/vcpkg-docs/blob/main/vcpkg/get_started/get-started-vscode.md

Document Version Independent Id

6402b87a-b33e-ebf5-01d2-a2d1115d6f2b

Article author

@data-queue

Metadata

vicroms commented 2 months ago

Running from the VS command prompt is only necessary when using the Ninja generator, you can use the Visual Studio generators then it will find the compiler correctly even if not running from a VS command prompt. In any case, I've added a note about it at the top of the tutorial.