diff --git a/build/stage-build.yml b/build/stage-build.yml index 536878b..db52390 100644 --- a/build/stage-build.yml +++ b/build/stage-build.yml @@ -1,4 +1,9 @@ -steps: +parameters: + DotNetVersion: '7.0.101' + UnoCheck_Version: '1.10.0' + UnoCheck_Manifest: 'https://raw.githubusercontent.com/unoplatform/uno.check/a677137a2afd4ee25ba4b4df4bf857671ba192c3/manifests/uno.ui.manifest.json' + +steps: - task: gitversion/setup@0 inputs: versionSpec: '5.10.1' @@ -10,15 +15,21 @@ configFilePath: $(Build.SourcesDirectory)/build/gitversion.yml displayName: 'Calculate version' -- script: dotnet workload install android ios macos maccatalyst" - displayName: 'Install .NET workloads' - -- 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' diff --git a/docs/StackNavigation-Setup.md b/docs/StackNavigation-Setup.md index bcde075..d385fe2 100644 --- a/docs/StackNavigation-Setup.md +++ b/docs/StackNavigation-Setup.md @@ -34,7 +34,7 @@ { typeof(MainPageViewModel), typeof(MainPage) } }; ``` -1. From a blank UWP (Legacy) application, create a `FrameStackNavigator` using the predefined `rootFrame` in the `OnLaunched` method of `App.xaml.cs`. +1. From a blank WinUI application, create a `FrameStackNavigator` using the predefined `rootFrame` in the `OnLaunched` method of `App.xaml.cs`. Overral, `OnLaunched` should look like this after the changes. ```csharp