Run Visual Studio command line tools in Windows Powershell
--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Secret Catacombs
--
Chapters
00:00 Run Visual Studio Command Line Tools In Windows Powershell
00:57 Accepted Answer Score 5
01:07 Answer 2 Score 2
01:35 Answer 3 Score 0
01:49 Thank you
--
Full question
https://superuser.com/questions/104868/r...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#powershell #visualstudio2005
#avk47
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Secret Catacombs
--
Chapters
00:00 Run Visual Studio Command Line Tools In Windows Powershell
00:57 Accepted Answer Score 5
01:07 Answer 2 Score 2
01:35 Answer 3 Score 0
01:49 Thank you
--
Full question
https://superuser.com/questions/104868/r...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#powershell #visualstudio2005
#avk47
ACCEPTED ANSWER
Score 5
The PowerShell Community Extensions has an Import-VisualStudioVars
cmdlet.
ANSWER 2
Score 2
PSCX's Import-VisualStudioVars
is a large script that tries to duplicate what vsvars32.bat
does. The problem there is that keeping them in sync requires effort and can be a source of bugs.
I prefer to rely on vsvars32.bat to do what it does, and import the env. vars. in to PowerShell. I do that with Invoke-CmdScript.ps1.
ANSWER 3
Score 0
Another option from PowerShell gallery: posh-vs Makes Visual Studio command line tools available in PowerShell. Supports Visual Studio 2017 and 2015.