Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/actions/test-setup-dotnet-windows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ inputs:
runs:
using: "composite"
steps:
- name: Setup .NET SDK ${{inputs.architecture}}
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
architecture: ${{inputs.architecture}}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Install runtimes where setup-dotnet expects them

The new actions/setup-dotnet@v4 step installs the 10.0 SDK into the hosted tool cache and sets DOTNET_ROOT/disables multi-level lookup for the job. The later PowerShell block still drops all required runtimes into ${{steps.get-program-files.outputs.path}}/dotnet (Program Files). Because the active dotnet on PATH now points to the tool cache, it no longer sees those runtimes, so Windows .NET tests targeting netcoreapp3.x–net9.0 will fail with “No compatible framework version was found”. Install the extra runtimes into DOTNET_ROOT (or re-enable multi-level lookup) so the SDK can locate them.

Useful? React with 👍 / 👎.


- name: Get .NET Channel for ${{inputs.target_framework}}
uses: ./.github/actions/get-dotnet-channel
id: get_channel
Expand Down
Loading