diff --git a/CHANGELOG.md b/CHANGELOG.md index da94b53ab..02d8c77ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) Prefix your items with `(Template)` if the change is about the template and not the resulting application. +## 3.0.X +- Updated to Uno 5. + ## 2.2.X - Added hooks for default analytics (page views and command invocations). - Renamed the `AnalyticsDataLoaderStrategy` to `MonitoringDataLoaderStrategy`. (The same renaming was applied to related methods and classes). diff --git a/build/templates/dotnet-install.yml b/build/templates/dotnet-install.yml index 7ec8de5c2..2978eb09b 100644 --- a/build/templates/dotnet-install.yml +++ b/build/templates/dotnet-install.yml @@ -1,15 +1,19 @@ parameters: -- name: installMobileWorkload - type: boolean - default: true + DotNetVersion: '7.0.400' + UnoCheck_Version: '1.17.0' + UnoCheck_Manifest: 'https://raw.githubusercontent.com/unoplatform/uno.check/262bebd06e916ec022b8fdc4a2a9df14f0554b92/manifests/uno.ui.manifest.json' steps: - - task: UseDotNet@2 - displayName: 'Install .NET SDK' - inputs: - packageType: 'sdk' - version: '7.0.203' +- task: UseDotNet@2 + displayName: 'Use .NET SDK ${{ parameters.DotNetVersion }}' + inputs: + packageType: 'sdk' + version: ${{ parameters.DotNetVersion }} - - powershell: dotnet workload install maui --source https://aka.ms/dotnet6/nuget/index.json --source https://api.nuget.org/v3/index.json - condition: ${{ parameters.installMobileWorkload }} - displayName: Install .NET MAUI Workload +- 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 \ No newline at end of file diff --git a/src/app/ApplicationTemplate.Access/ApplicationTemplate.Access.csproj b/src/app/ApplicationTemplate.Access/ApplicationTemplate.Access.csproj index ff5fa60c4..37abcaafe 100644 --- a/src/app/ApplicationTemplate.Access/ApplicationTemplate.Access.csproj +++ b/src/app/ApplicationTemplate.Access/ApplicationTemplate.Access.csproj @@ -20,13 +20,13 @@ - + - - + + diff --git a/src/app/ApplicationTemplate.Mobile/ApplicationTemplate.Mobile.csproj b/src/app/ApplicationTemplate.Mobile/ApplicationTemplate.Mobile.csproj index 1ac9b6814..f4be2d411 100644 --- a/src/app/ApplicationTemplate.Mobile/ApplicationTemplate.Mobile.csproj +++ b/src/app/ApplicationTemplate.Mobile/ApplicationTemplate.Mobile.csproj @@ -1,6 +1,6 @@  - 10.0 + 11.0 net7.0-android;net7.0-ios true true @@ -17,25 +17,25 @@ partial - - - - - - - - - + + + + + + + + + - - - - - - - - - + + + + + + + + + diff --git a/src/app/ApplicationTemplate.Presentation/ApplicationTemplate.Presentation.csproj b/src/app/ApplicationTemplate.Presentation/ApplicationTemplate.Presentation.csproj index d85c1e5f7..d48d0313f 100644 --- a/src/app/ApplicationTemplate.Presentation/ApplicationTemplate.Presentation.csproj +++ b/src/app/ApplicationTemplate.Presentation/ApplicationTemplate.Presentation.csproj @@ -26,16 +26,16 @@ - - - - - - - - - - + + + + + + + + + + diff --git a/src/app/ApplicationTemplate.Shared.Views/App.xaml.cs b/src/app/ApplicationTemplate.Shared.Views/App.xaml.cs index 6de3ea87b..edaf26cef 100644 --- a/src/app/ApplicationTemplate.Shared.Views/App.xaml.cs +++ b/src/app/ApplicationTemplate.Shared.Views/App.xaml.cs @@ -4,6 +4,7 @@ using Microsoft.Extensions.Logging; using Microsoft.UI.Xaml; using Uno.Extensions; +using Uno.UI; using Windows.Graphics.Display; namespace ApplicationTemplate; @@ -80,6 +81,10 @@ private void InitializeAndStart() #endif //+:cnd:noEmit +#if DEBUG + CurrentWindow.EnableHotReload(); +#endif + _ = Task.Run(() => Startup.Start()); } diff --git a/src/app/ApplicationTemplate.Windows/ApplicationTemplate.Windows.csproj b/src/app/ApplicationTemplate.Windows/ApplicationTemplate.Windows.csproj index c6198202d..df662d67c 100644 --- a/src/app/ApplicationTemplate.Windows/ApplicationTemplate.Windows.csproj +++ b/src/app/ApplicationTemplate.Windows/ApplicationTemplate.Windows.csproj @@ -1,6 +1,6 @@  - 10.0 + 11.0 WinExe net7.0-windows10.0.22621.0 10.0.19041.0 @@ -67,26 +67,25 @@ - - - - + + + + - - - + + + - - - + + + + - - - - + + diff --git a/src/app/ApplicationTemplate.Windows/Package.appxmanifest b/src/app/ApplicationTemplate.Windows/Package.appxmanifest index e907c3334..8d2fdb227 100644 --- a/src/app/ApplicationTemplate.Windows/Package.appxmanifest +++ b/src/app/ApplicationTemplate.Windows/Package.appxmanifest @@ -18,8 +18,8 @@ - - + +