saltstack / salt

Software to automate the management and configuration of any infrastructure or application at scale. Get access to the Salt software package repository here:
https://repo.saltproject.io/
Apache License 2.0
13.98k stars 5.47k forks source link

[3006.x] Detect existing VC Build Tools on GitHub runners #66618

Closed twangboy closed 1 day ago

twangboy commented 4 weeks ago

What does this PR do?

Add the ability for the install_vs_buildtools.ps1 script to detect existing installations of msbuild.exe on any version of Visual Studio build tools if installed. This greatly shortens the build process as it takes 5 to 10 minutes to install VS build tools. The github runners come with Visual Studio build tools 2022, which seems to build all the Salt dependencies just fine.

What issues does this PR fix or reference?

Fixes issue found during nightly build failure

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes