How to use a specific MSVC version in GitHub Actions?
github-actionsmsvcC++
The user is asking how to specify a particular version of the Microsoft Visual C++ compiler (MSVC) when running GitHub Actions.
Synthesized Answer
Based on 1 community responses
To use a specific version of MSVC in GitHub Actions, you can utilize the 'windows-latest' or 'windows-2019' runner which comes with multiple MSVC versions pre-installed. You can then use the 'vswhere' tool to locate the desired MSVC version and configure your build environment accordingly. Alternatively, you can use the 'setup-msbuild' action to configure the MSBuild environment for your desired MSVC version.
Key Takeaways
Use 'windows-latest' or 'windows-2019' runner for pre-installed MSVC versions
Utilize 'vswhere' tool to locate the desired MSVC version
Use 'setup-msbuild' action to configure MSBuild environment for specific MSVC version