You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: Working inside "Developer Command Prompt for VS 2017" should work out of the box and may be preferred.
However if you want to use PowerShell and VC++, this is page is for you.
This is how you configure PowerShell for C++ development so you can use Visual Studio Toolchain.
We need to export Visual Studio Environment Variables in PowerShell as this is not done by default.
Now you can use Visual Studio Compiler and tools like Buck will be able to pick up your toolchain.
As Import-VisualStudioVars 2017 amd64 is not exporting the environment variables permanently you will need to rerun this command on every new PowerShell session.
Import-VisualStudioVars 2017 amd64
cd path/to/project
buck build :app
Credits to @shybovycha who shared this instructions here.