Skip to content

Commit

Permalink
Update to locate Microsoft Build Tools
Browse files Browse the repository at this point in the history
Locate build tool only installs, for when no full Visual Studion install
  • Loading branch information
Martin King authored and Martin King committed Oct 23, 2024
1 parent 8a9ad35 commit 7406e20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 1k/1kiss.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ function find_vs() {
if (!$required_vs_ver) { $required_vs_ver = '12.0+' }

$require_comps = @('Microsoft.Component.MSBuild', 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64')
$vs_installs = ConvertFrom-Json "$(&$VSWHERE_EXE -version $required_vs_ver.TrimEnd('+') -format 'json' -requires $require_comps)"
$vs_installs = ConvertFrom-Json "$(&$VSWHERE_EXE -version $required_vs_ver.TrimEnd('+') -format 'json' -all -products Microsoft.VisualStudio.Product.BuildTools -requires $require_comps)"
$ErrorActionPreference = $eap

if ($vs_installs) {
Expand Down

0 comments on commit 7406e20

Please sign in to comment.