ilammy/msvc-dev-cmd

Could not setup Developer Command Prompt: invalid parameters

alemuntoni opened this issue · 4 comments

I am getting the error Could not setup Developer Command Prompt: invalid parameters when running the msvc-dev-cmd action: https://github.com/cnr-isti-vclab/vclib/actions/runs/8187452904/job/22387956612.

Could it be that something changed in the Runner Image version? Was working with v 20240225.2.0, it fails with v 20240304.2.0.

Hi.

Could it be that something changed in the Runner Image version? Was working with v 20240225.2.0, it fails with v 20240304.2.0.

Yes, exactly!

Your log:

## Set up job
Microsoft Windows Server 2022

## Setup MSVC

[ERROR:vcvars.bat] Toolset directory for version '14.37' was not found.

GitHub made changes: Release Windows Server 2022 (20240304) Image Update · actions/runner-images

Visual Studio Enterprise 2022 > Workloads, components and extensions

Package Version
Microsoft.VisualStudio.Component.VC.14.37.17.7.x86.x64 17.9.34511.75
Microsoft.VisualStudio.Component.VC.14.39.17.9.x86.x64 17.9.34511.75

So, you need to update the version number.

Wooops!! Sorry, my bad! I just forgot that I manually added the version number in the workflow file...
Sorry again!

Never mind. Is your CI running without problem after removing the version number?

Yep, everything is ok now!