ilammy / msvc-dev-cmd

GitHub Action to setup Developer Command Prompt for Microsoft Visual C++
MIT License
329 stars 44 forks source link

Unable to set toolset version #84

Open Manicsteiner opened 3 weeks ago

Manicsteiner commented 3 weeks ago

Tried to add this script in my project, it failed to find toolset version 14.38.

Run ilammy/msvc-dev-cmd@v1 with: arch: x64 toolset: 14.38 env: MAABUILDER_TARGET_PLATFORM: x64 Found with vswhere: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat Error: Could not setup Developer Command Prompt: invalid parameters [ERROR:vcvars.bat] Toolset directory for version '14.38' was not found. [ERROR:VsDevCmd.bat] VsDevCmd.bat encountered errors. Environment may be incomplete and/or incorrect. [ERROR:VsDevCmd.bat] In an uninitialized command prompt, please 'set VSCMD_DEBUG=[value]' and then re-run [ERROR:VsDevCmd.bat] vsdevcmd.bat [args] for additional details. [ERROR:VsDevCmd.bat] Where [value] is: [ERROR:VsDevCmd.bat] 1 : basic debug logging [ERROR:VsDevCmd.bat] 2 : detailed debug logging [ERROR:VsDevCmd.bat] 3 : trace level logging. Redirection of output to a file when using this level is recommended. [ERROR:VsDevCmd.bat] Example: set VSCMD_DEBUG=3 [ERROR:VsDevCmd.bat] vsdevcmd.bat > vsdevcmd.trace.txt 2>&1

https://github.com/Manicsteiner/MaaAssistantArknights/actions/runs/9732513554/job/26858278157#step:3:9

According to information from other issues, the toolset version can only be set to the version included in runner images. However, in the 20240514 update, Github removed almost all toolsets from other versions and has not been added back yet. Does this mean that the ‘version’ input arg is no longer available?

pzhlkj6612 commented 3 weeks ago

Hi.

Does this mean that the ‘version’ input arg is no longer available?

That means that the "version" arg is almost useless for GitHub runners.