Skip to content

Commit 4869408

Browse files
committed
Updates .NET SDK version for MAUI workloads
Updates the .NET SDK version used for installing MAUI workloads in the beta and production NuGet workflows. - Ensures the correct .NET SDK version is used for MAUI workload installation. - Simplifies the workflow by using environment variables.
1 parent 89b04f9 commit 4869408

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/nuget-beta.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ env:
1212
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
1313
DOTNET_NOLOGO: true
1414
NuGetDirectory: ${{ github.workspace}}/nuget
15+
DotnetVersion: '9.0.304'
1516

1617
jobs:
1718
build:
@@ -23,10 +24,10 @@ jobs:
2324
fetch-depth: 0 # Fetch full history for release notes generation
2425
- uses: actions/setup-dotnet@v3
2526
with:
26-
dotnet-version: "9.x"
27+
dotnet-version: "${{ env.NuGetDirectory }}"
2728

2829
- name: Install MAUI Workloads
29-
run: dotnet workload install maui --ignore-failed-sources
30+
run: dotnet workload install maui --ignore-failed-sources --version ${{ env.NuGetDirectory }}
3031

3132
- name: Semver Parse
3233
id: version

.github/workflows/nuget-prod.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ env:
1212
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
1313
DOTNET_NOLOGO: true
1414
NuGetDirectory: ${{ github.workspace}}/nuget
15+
DotnetVersion: '9.0.304'
1516

1617
jobs:
1718
build:
@@ -23,10 +24,10 @@ jobs:
2324
fetch-depth: 0 # Fetch full history for release notes generation
2425
- uses: actions/setup-dotnet@v3
2526
with:
26-
dotnet-version: "9.x"
27+
dotnet-version: "${{ env.NuGetDirectory }}"
2728

2829
- name: Install MAUI Workloads
29-
run: dotnet workload install maui --ignore-failed-sources
30+
run: dotnet workload install maui --ignore-failed-sources --version ${{ env.NuGetDirectory }}
3031

3132
- name: Semver Parse
3233
id: version

0 commit comments

Comments
 (0)