Enter VSDevShell from a stand-alone powershell script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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 |
Doesn't work for VS Build Tools (i.e. when no IDE is installed).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A full-blown script,
pwsh-dev-x64.ps1
: