Skip to content

Commit 0b63c4e

Browse files
committed
chore: Bump to latest .NET
1 parent 65d04da commit 0b63c4e

1 file changed

Lines changed: 21 additions & 3 deletions

File tree

build/templates/dotnet-install-linux.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,36 @@
11
parameters:
2-
DotNetVersion: '9.0.200'
3-
UnoCheck_Version: '1.31.0-dev.12'
2+
DotNetVersion: '9.0.203'
3+
UnoCheck_Version: '1.32.0-dev.3'
44
installJava: true
55
installWorkloads: true
66
UnoCheckParameters: ''
77

88
steps:
9+
# Required for caching
10+
- pwsh: |
11+
echo "##vso[task.setvariable variable=DOTNET_INSTALL_DIR;]$(Build.SourcesDirectory)/.dotnet"
12+
displayName: "Set DOTNET_INSTALL_DIR for macOS/Linux"
13+
condition: or(eq(variables['Agent.OS'], 'Linux'), eq(variables['Agent.OS'], 'Darwin'))
14+
15+
- pwsh: |
16+
echo "##vso[task.setvariable variable=DOTNET_INSTALL_DIR;]$(Build.SourcesDirectory)\.dotnet"
17+
displayName: "Set DOTNET_INSTALL_DIR for Windows"
18+
condition: eq(variables['Agent.OS'], 'Windows_NT')
19+
20+
- task: Cache@2
21+
inputs:
22+
key: dotnet | "$(Agent.OS)" | "$(Agent.JobName)" | "${{ parameters.UnoCheck_Version }}" | "${{ parameters.UnoCheckParameters }}"
23+
path: $(DOTNET_INSTALL_DIR)
24+
displayName: Set Cache for dotnet install
25+
926
- task: UseDotNet@2
1027
displayName: 'Use .NET Core SDK ${{ parameters.DotNetVersion }}'
1128
retryCountOnTaskFailure: 3
1229
inputs:
1330
packageType: sdk
1431
version: ${{ parameters.DotNetVersion }}
1532
includePreviewVersions: true
33+
installationPath: $(DOTNET_INSTALL_DIR)
1634

1735
- bash: |
1836
ubuntu_release=`lsb_release -rs`
@@ -28,6 +46,6 @@ steps:
2846
2947
- bash: |
3048
dotnet tool update --global uno.check --version ${{ parameters.UnoCheck_Version }} --add-source https://api.nuget.org/v3/index.json
31-
uno-check --verbose --ci --non-interactive --fix --skip gtk3 --skip androidsdk --skip maui --skip unosdk --pre-major ${{ parameters.UnoCheckParameters }}
49+
uno-check --verbose --ci --non-interactive --fix --skip gtk3 --skip androidsdk --skip androidemulator --skip maui --skip unosdk --pre-major ${{ parameters.UnoCheckParameters }}
3250
displayName: Install .NET Workloads
3351
condition: and(succeeded(), and( eq(variables['Agent.OS'], 'Linux'), eq('${{ parameters.installWorkloads }}', 'true') ))

0 commit comments

Comments
 (0)