Skip to content

Commit cf76085

Browse files
committed
chore: Adjust ci to build samples using NET 9 and updating Uno.Check version
1 parent 2fd4764 commit cf76085

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

build/templates/dotnet-install-windows.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
parameters:
2-
DotNetVersion: '8.0.100'
3-
UnoCheck_Version: '1.25.1'
4-
UnoCheck_Manifest: 'https://raw.githubusercontent.com/unoplatform/uno.check/3b250f49b719d1cf5ab205f997c3959b5e9fed1d/manifests/uno.ui.manifest.json'
2+
DotNetVersions: ['8.0.100', '9.0.100']
3+
UnoCheck_Version: '1.28.3'
54

65
steps:
76

8-
- task: UseDotNet@2
9-
displayName: 'Use .NET Core SDK ${{ parameters.DotNetVersion }}'
10-
retryCountOnTaskFailure: 3
11-
inputs:
12-
packageType: sdk
13-
version: ${{ parameters.DotNetVersion }}
14-
includePreviewVersions: true
7+
# Install multiple .NET SDK versions
8+
- ${{ each version in parameters.DotNetVersions }}:
9+
- task: UseDotNet@2
10+
displayName: 'Use .NET Core SDK ${{ version }}'
11+
retryCountOnTaskFailure: 3
12+
inputs:
13+
packageType: sdk
14+
version: ${{ version }}
15+
includePreviewVersions: true
1516

1617
- template: jdk-setup.yml
17-
18+
19+
# Install the necessary workloads for both .NET 8 and .NET 9
1820
- powershell: |
1921
& dotnet tool update --global uno.check --version ${{ parameters.UnoCheck_Version }} --add-source https://api.nuget.org/v3/index.json
2022
& uno-check --pre -v --ci --non-interactive --fix --skip androidsdk --skip androidemulator --skip xcode --skip gtk3 --skip vswin --skip vsmac

0 commit comments

Comments
 (0)