actions-marketplace-validations/Setup Visual C++ Development Environment

Configure the Visual C++ development environment by running vcvarsall.bat.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Apr 6, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: actions-marketplace-validations/mlocati_setup-msvc@b0d9cacc37bca3008de7e4c3118298c307b9a96e # no releases — HEAD as of 2026-07-13

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
vs-versionThe Visual Studio version (e.g. 'latest', '2022', '17'), if not specified, the latest installed Visual Studio version will be usednolatest
architectureThe architecture for the Visual Studio tools ('x86', 'x64', 'x86_x64', 'x86_arm', 'x86_arm64', 'x64_x86', 'x64_arm', 'x64_arm64') - if not specified, the action will try to determine it based on the system architectureno
platform-typeThe platform type for the Visual Studio tools ('store', 'uwp', or empty for classic desktop)nodesktop
windows-sdk-versionThe Windows SDK version to use (e.g. '10.0.26100.0', '8.1') - if not specified, the action will try to determine it based on the installed SDKsno
toolset-versionThe Visual Studio toolset version to use (e.g. '14', '14.44', '14.44.35207') - if not specified, the latest installed toolset version will be usedno
spectre-modeWhether to enable Spectre mitigation (true or false)nofalse
canonicalize-pathsIf true, verifies if paths in environment variables exist, resolves symbolic links, and normalizes casing (e.g., converts 'c:\pRoGrAm fILES\Foo\' to 'C:\Program Files\Foo')nofalse
if-not-windowsWhat to do if the action is run on a non-Windows system ('fail' to fail the action, 'warn' to print a warning, 'ignore' to do nothing)nofail
update-envSet to true to update the environment variables of subsequent steps in the job, false to not update them, or to a newline-separated list of variable names to only update a subset of them (prepend "!" to a variable name to exclude it from updating when using a list)notrue
debugDump debug informationnofalse
namedescription
vcvarsall-pathThe path to the vcvarsall.bat file used for inspection - e.g. C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat
pathThe additional paths added to the PATH environment variable by vcvarsall.bat (semicolon-separated)
includeThe INCLUDE environment variable set by vcvarsall.bat (semicolon-separated)
libThe LIB environment variable set by vcvarsall.bat (semicolon-separated)
libpathThe LIBPATH environment variable set by vcvarsall.bat (semicolon-separated)
vc-installdirThe root directory of Visual C++ - e.g. C:\Program Files\Microsoft Visual Studio\2022\Community\VC\
vs-installdirThe root directory of Visual Studio - e.g. C:\Program Files\Microsoft Visual Studio\2022\Community\
vs-versionThe version of Visual Studio - e.g. 17.0
vctools-installdirThe root directory of the Visual C++ tools - e.g. C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\
vctools-versionThe version of the Visual C++ tools - e.g. 14.44.35207
windows-sdk-dirThe root directory of the Windows SDK - e.g. C:\Program Files (x86)\Windows Kits\10\
windows-sdk-versionThe version of the Windows SDK - e.g. 10.0.26100.0\
windows-sdk-lib-versionThe version of the Windows SDK libraries - e.g. 10.0.26100.0\
ucrt-versionThe version of the Universal C Runtime - e.g. 10.0.26100.0
platformThe target platform for the Visual Studio tools - e.g. x64
vcmd-arg-host-archThe architecture of the system that runs the Visual Studio tools - e.g. x64
vcmd-arg-tgt-archThe architecture of the target platform - e.g. x64
allAll the environment variables set by vcvarsall.bat, in JSON format