Skip to content

Commit

Permalink
fix: Use uno-check to compile with .net sdk 7.0.101 and make document…
Browse files Browse the repository at this point in the history
…ation not UWP specific
  • Loading branch information
NVENTIVE\felix.brault committed Dec 5, 2023
1 parent c17db06 commit aa3747e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 10 deletions.
29 changes: 20 additions & 9 deletions build/stage-build.yml
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion docs/StackNavigation-Setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aa3747e

Please sign in to comment.