From 7d6dc00bc41f32fb69b28be970a27db50c6ca138 Mon Sep 17 00:00:00 2001 From: "NVENTIVE\\felix.brault" Date: Wed, 6 Dec 2023 13:35:07 -0500 Subject: [PATCH] fix: Use uno-check to compile with .net sdk 7.0.102 --- build/stage-build.yml | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/build/stage-build.yml b/build/stage-build.yml index 398bd82..5963a34 100644 --- a/build/stage-build.yml +++ b/build/stage-build.yml @@ -1,4 +1,9 @@ -steps: +parameters: + DotNetVersion: '7.0.102' + UnoCheck_Version: '1.11.0' + UnoCheck_Manifest: 'https://raw.githubusercontent.com/unoplatform/uno.check/146b0b4b23d866bef455494a12ad7ffd2f6f2d20/manifests/uno.ui.manifest.json' + +steps: - task: gitversion/setup@0 inputs: versionSpec: '5.10.1' @@ -23,15 +28,21 @@ versionSelector: 'specificVersion' testPlatformVersion: $(VSTEST_PLATFORM_VERSION) -- script: dotnet workload install android ios macos maccatalyst" - displayName: 'Install .NET workload' - -- task: JavaToolInstaller@0 - displayName: "Install Java SDK 11" +- task: UseDotNet@2 + displayName: 'Use .NET SDK ${{ parameters.DotNetVersion }}' + retryCountOnTaskFailure: 3 inputs: - versionSpec: '11' - jdkArchitectureOption: 'x64' - jdkSourceOption: 'PreInstalled' + packageType: sdk + version: ${{ parameters.DotNetVersion }} + includePreviewVersions: true + +- powershell: | + & dotnet tool update --global uno.check --version ${{ parameters.UnoCheck_Version }} --add-source https://api.nuget.org/v3/index.json + & uno-check -v --ci --non-interactive --fix --skip xcode --skip gtk3 --skip vswin --skip vsmac --skip androidsdk --skip androidemulator --manifest ${{ parameters.UnoCheck_Manifest }} + displayName: Install .NET Workloads | Uno-check + errorActionPreference: continue + ignoreLASTEXITCODE: true + retryCountOnTaskFailure: 3 - task: MSBuild@1 displayName: 'Restore solution packages'