Sometimes got error "Unable to locate dotnet CLI. Ensure that it is on the PATH" #564
Open
2 of 5 tasks
Labels
bug
Something isn't working
Description:
I found
setup-dotnet
is not always reliable.For example, in same GitHub Action build:
Attempt #1
failed: https://github.com/hongbo-miao/hongbomiao.com/actions/runs/12211957209/attempts/1Attempt #2
succeed: https://github.com/hongbo-miao/hongbomiao.com/actions/runs/12211957209Platform:
Runner type:
Repro steps:
hardware-in-the-loop/national-instruments/veristand/VeriStandZeroMQBridge/global.json
Expected behavior:
I expect dotnet CLI work all time if no code changes.
Actual behavior:
Even same code in same build, sometimes I got error "Unable to locate dotnet CLI. Ensure that it is on the PATH"
Also, for this pull request, when bumping csharpier from 0.30.2 to 0.30.3, no matter how many times I tried, I always got
Build log
You can see dotnet CLI got installed at
C:\Program Files\dotnet
, but next step it says cannot find itThe text was updated successfully, but these errors were encountered: