This pull request adds new handling in the ToolsSettings class to
resolve to the actual instance of an AMD64 MSBuild executable
to ensure we are using either the supported VS studio instance
or the latest instance available.
Motivation and Context
This change is made due to the version of cake that we are
currently using isn't able to resolve to a Visual Studio 2022
instance, or if an instance is installed to a custom directory.
Testing
Copy the files over to a local close of the chocolatey/choco repository.
Update the call to SetToolSettings and iterate through each enumeration value for MSBuildToolSettings that can be set
Verify the correct installation of Visual Studio is picked up.
NOTE: Due to not having any legacy installations of Visual Studio installed (2017 and below), I was not able to correctly assert this resolving
Change Types Made
[ ] Bug fix (non-breaking change)
[x] Feature / Enhancement (non-breaking change)
[ ] Breaking change (fix or feature that could cause existing functionality to change)
Description Of Changes
This pull request adds new handling in the ToolsSettings class to resolve to the actual instance of an AMD64 MSBuild executable to ensure we are using either the supported VS studio instance or the latest instance available.
Motivation and Context
This change is made due to the version of cake that we are currently using isn't able to resolve to a Visual Studio 2022 instance, or if an instance is installed to a custom directory.
Testing
SetToolSettings
and iterate through each enumeration value forMSBuildToolSettings
that can be setNOTE: Due to not having any legacy installations of Visual Studio installed (2017 and below), I was not able to correctly assert this resolving
Change Types Made
Related Issue
Fixes #93
Change Checklist