actions / setup-dotnet

Set up your GitHub Actions workflow with a specific version of the .NET core sdk
MIT License
919 stars 454 forks source link

Question - is this expected behavior or is my self-hosted Windows runner's issue? #417

Closed erkexzcx closed 1 year ago

erkexzcx commented 1 year ago

This is not a bug report, but rather consultation. I am using self-hosted Windows runner. Ephemeral one, in AWS. Please advise if this is intended behavior when PATH is not updated on Windows runners or is it an issue from my side (miconfiguration/lack of permissions)? No errors are thrown...


Here is the simple CI/CD workflow I am trying to run:

    steps:  
      - name: Setup .NET
        uses: actions/setup-dotnet@v3
        with:
          dotnet-version: 5.0.x

      - name: Print dotnet version (using PATH, ignore error)
        continue-on-error: true
        run: |
          dotnet.exe --version

      - name: Print dotnet version (using fullpath to executable)
        run: |
          & "C:\Program Files\dotnet\dotnet" --version

The output is this:


Please advise if this is expected behavior on Windows runners or is there some kind of misconfiguration/lack of permissions from my side?

IvanZosimov commented 1 year ago

Hi, @erkexzcx 👋 I tried to reproduce the issue you state on my Windows self-hosted runner but with no luck. I believe it's the issue on your image side.

IvanZosimov commented 1 year ago

Hi, @erkexzcx 👋 I'm closing this issue, if it's not resolved for you or you have any additional questions, feel free to reopen issue!