Skip to content

Instantly share code, notes, and snippets.

@ArthurHNL
Created September 23, 2019 07:37
Show Gist options
  • Select an option

  • Save ArthurHNL/b29f008cbc7a159a6ae82a7152b1cb2a to your computer and use it in GitHub Desktop.

Select an option

Save ArthurHNL/b29f008cbc7a159a6ae82a7152b1cb2a to your computer and use it in GitHub Desktop.
Enter VSDevShell from a stand-alone powershell script
$vsPath = &(Join-Path ${env:ProgramFiles(x86)} "\Microsoft Visual Studio\Installer\vswhere.exe") -property installationpath
Import-Module (Join-Path $vsPath "Common7\Tools\vsdevshell\Microsoft.VisualStudio.DevShell.dll")
Enter-VsDevShell -VsInstallPath $vsPath -SkipAutomaticLocation
@tahir-hassan
Copy link

I installed "Visual Studio Build Tools 2026" on Windows 11. I can do:

cd "C:\Program Files (x86)\Microsoft Visual Studio\18\BuildTools\Common7\Tools"
.\Launch-VsDevShell.ps1

which makes clang.exe available in PATH. I have not tested it with the full blown installation of Visual Studio 2026.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment