ilammy / msvc-dev-cmd

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

Could not setup Developer Command Prompt: invalid parameters #76

Closed alemuntoni closed 4 months ago

alemuntoni commented 4 months ago

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.

pzhlkj6612 commented 4 months ago

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.

alemuntoni commented 4 months ago

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

pzhlkj6612 commented 4 months ago

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

alemuntoni commented 4 months ago

Yep, everything is ok now!