How to install the VS 2017 build tools and connect them to Powershell Here's the profile I use in the video.
function Get-Batchfile ($file) {
$cmd = "`"$file`" & set"
cmd /c $cmd | Foreach-Object {
$p, $v = $_.split('=')
if($p -and $v){
Set-Item -path env:$p -value $v
}
}
}
Get-Batchfile("C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\VsDevCmd.bat")
#Get-Batchfile("c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat")