ilammy / msvc-dev-cmd

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

Toolset 14.0 doesn't work #53

Closed ashleyabraham closed 2 years ago

ashleyabraham commented 2 years ago

Toolset 14.0 doesn't work and here's my snippet from build.yml

- name: Windows & Python 3.5 only setup
      if: ${{ matrix.os ==  'windows-latest' && matrix.python-version == '3.5'}}
      uses: ilammy/msvc-dev-cmd@v1
      with:
          toolset: '14.0'

Error/Response message

Run ilammy/msvc-dev-cmd@v1
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[14](https://github.com/ashleyabraham/rii/runs/5418841482?check_suite_focus=true#step:6:14)0.bat] VC++ 14.0 Toolset Installation was not found. Init did not complete successfully.
[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

If GitHub doesn't support 14.0 toolset, then please update the readme to remove the 14.0 misleading message

pzhlkj6612 commented 2 years ago

Hi. May be you are using windows-latest as the runner's OS. Please try windows-2016 or windows-2019 .

ashleyabraham commented 2 years ago

I am using windows-latest, I’ll try 2016 or 2019, thanks!

On Fri, Mar 4, 2022 at 3:12 AM Mozi @.***> wrote:

Hi. May be you are using windows-latest as the runner's OS. Please try windows-2016 or windows-2019 .

— Reply to this email directly, view it on GitHub https://github.com/ilammy/msvc-dev-cmd/issues/53#issuecomment-1058978489, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXC25ASJ4W3G6UZY2DJLHDU6HHYRANCNFSM5P42CUOA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

ashleyabraham commented 2 years ago

windows-2019 worked well with toolset 14.0, thanks