From 5fa509ee39f0c4f5ff1ba14414671b8daf0af7e3 Mon Sep 17 00:00:00 2001 From: Ryan Wintle Date: Fri, 3 Nov 2023 14:50:17 -0400 Subject: [PATCH 1/6] ci: updated the macos pool --- build/templates/gitversion.yml | 4 ++-- build/variables.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/templates/gitversion.yml b/build/templates/gitversion.yml index c5df69610..ff7a6e802 100644 --- a/build/templates/gitversion.yml +++ b/build/templates/gitversion.yml @@ -1,8 +1,8 @@ -steps: +steps: - task: gitversion/setup@0 retryCountOnTaskFailure: 3 inputs: - versionSpec: '5.10.1' + versionSpec: '5.12.0' displayName: 'Install GitVersion' #-if false diff --git a/build/variables.yml b/build/variables.yml index ac9fb550f..d9ca85594 100644 --- a/build/variables.yml +++ b/build/variables.yml @@ -1,4 +1,4 @@ -variables: +variables: # Prerequisites - Variable groups # Make sure you have the following variable groups in your Azure pipeline library: # @@ -74,7 +74,7 @@ variables: # Virtual machine images windowsHostedAgentImage: 'windows-2022' macOSHostedAgentImage: 'macOS-12' - macOSPoolName: 'macOS' + macOSPoolName: 'macOS-2023' # Versions to use XAMARIN_IOS_VERSION: 16.1.1 From f05221588ad2824419dedb318427501bae37f278 Mon Sep 17 00:00:00 2001 From: Carl Mathieu Date: Wed, 6 Dec 2023 14:51:11 -0500 Subject: [PATCH 2/6] feat!: update to uno 5 --- CHANGELOG.md | 3 ++ build/templates/dotnet-install.yml | 26 +++++++------ .../ApplicationTemplate.Access.csproj | 6 +-- .../ApplicationTemplate.Mobile.csproj | 38 +++++++++---------- .../ApplicationTemplate.Presentation.csproj | 20 +++++----- .../App.xaml.cs | 9 ++++- .../ApplicationTemplate.Windows.csproj | 29 +++++++------- .../Package.appxmanifest | 4 +- 8 files changed, 73 insertions(+), 62 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index da94b53ab..18b900e19 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..bbffc0dfc 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..787ee404e 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; @@ -74,11 +75,15 @@ private void InitializeAndStart() Startup.ShellActivity.Stop(); } -//-:cnd:noEmit + //-:cnd:noEmit #if __MOBILE__ CurrentWindow.Activate(); #endif -//+:cnd:noEmit + //+: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 @@ - - + + From 855e6dc35a0453efa7fc85f1e4e22065ef429a41 Mon Sep 17 00:00:00 2001 From: Carl Mathieu Date: Fri, 15 Dec 2023 11:53:46 -0500 Subject: [PATCH 3/6] fix: fix PR comments --- CHANGELOG.md | 2 +- build/templates/dotnet-install.yml | 2 +- src/app/ApplicationTemplate.Shared.Views/App.xaml.cs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 18b900e19..02d8c77ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ 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 +- Updated to Uno 5. ## 2.2.X - Added hooks for default analytics (page views and command invocations). diff --git a/build/templates/dotnet-install.yml b/build/templates/dotnet-install.yml index bbffc0dfc..2978eb09b 100644 --- a/build/templates/dotnet-install.yml +++ b/build/templates/dotnet-install.yml @@ -13,7 +13,7 @@ steps: - 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 + displayName: Install .NET Workloads | Uno Check errorActionPreference: continue ignoreLASTEXITCODE: true retryCountOnTaskFailure: 3 \ No newline at end of file diff --git a/src/app/ApplicationTemplate.Shared.Views/App.xaml.cs b/src/app/ApplicationTemplate.Shared.Views/App.xaml.cs index 787ee404e..edaf26cef 100644 --- a/src/app/ApplicationTemplate.Shared.Views/App.xaml.cs +++ b/src/app/ApplicationTemplate.Shared.Views/App.xaml.cs @@ -75,11 +75,11 @@ private void InitializeAndStart() Startup.ShellActivity.Stop(); } - //-:cnd:noEmit +//-:cnd:noEmit #if __MOBILE__ CurrentWindow.Activate(); #endif - //+:cnd:noEmit +//+:cnd:noEmit #if DEBUG CurrentWindow.EnableHotReload(); From c585f359bff826fdd490ae7f96315a71630af5d1 Mon Sep 17 00:00:00 2001 From: Carl Mathieu Date: Tue, 19 Dec 2023 16:26:08 -0500 Subject: [PATCH 4/6] ci: remove fastlane (cherry picked from commit 7c6bb503e7487be32a1bf788e5480ef2fe4cb677) --- build/stage-release-appcenter.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/build/stage-release-appcenter.yml b/build/stage-release-appcenter.yml index c0f95ac1f..694963230 100644 --- a/build/stage-release-appcenter.yml +++ b/build/stage-release-appcenter.yml @@ -62,8 +62,6 @@ jobs: - deployment: AppCenter_iOS pool: vmImage: $(macOSHostedAgentImage) - demands: - - fastlane variables: - name: artifactName value: $(iOSArtifactName)_${{ parameters.applicationEnvironment }} From fec64a8ff90d5fbf12b4ea6efcad8f8e5311c090 Mon Sep 17 00:00:00 2001 From: Carl Mathieu Date: Fri, 22 Dec 2023 15:25:47 -0500 Subject: [PATCH 5/6] chore: bump packages --- .../ApplicationTemplate.Access.csproj | 6 +++--- .../ApplicationTemplate.Mobile.csproj | 18 ++++++++--------- .../ApplicationTemplate.Presentation.csproj | 20 +++++++++---------- .../ApplicationTemplate.Windows.csproj | 18 ++++++++--------- 4 files changed, 31 insertions(+), 31 deletions(-) diff --git a/src/app/ApplicationTemplate.Access/ApplicationTemplate.Access.csproj b/src/app/ApplicationTemplate.Access/ApplicationTemplate.Access.csproj index 37abcaafe..ecde345e6 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 f4be2d411..e0dcd99f0 100644 --- a/src/app/ApplicationTemplate.Mobile/ApplicationTemplate.Mobile.csproj +++ b/src/app/ApplicationTemplate.Mobile/ApplicationTemplate.Mobile.csproj @@ -17,15 +17,15 @@ partial - - - - - - - - - + + + + + + + + + diff --git a/src/app/ApplicationTemplate.Presentation/ApplicationTemplate.Presentation.csproj b/src/app/ApplicationTemplate.Presentation/ApplicationTemplate.Presentation.csproj index d48d0313f..5048ecf3c 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.Windows/ApplicationTemplate.Windows.csproj b/src/app/ApplicationTemplate.Windows/ApplicationTemplate.Windows.csproj index df662d67c..8ad54da2f 100644 --- a/src/app/ApplicationTemplate.Windows/ApplicationTemplate.Windows.csproj +++ b/src/app/ApplicationTemplate.Windows/ApplicationTemplate.Windows.csproj @@ -67,20 +67,20 @@ - - - - + + + + - - + + - - - + + + From f410646fc0bcb828d008e1cdfc1094fd4230bc1e Mon Sep 17 00:00:00 2001 From: Carl Mathieu Date: Tue, 9 Jan 2024 10:09:50 -0500 Subject: [PATCH 6/6] chore: add cnd:noEmit --- src/app/ApplicationTemplate.Shared.Views/App.xaml.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/ApplicationTemplate.Shared.Views/App.xaml.cs b/src/app/ApplicationTemplate.Shared.Views/App.xaml.cs index edaf26cef..62cfb8ed9 100644 --- a/src/app/ApplicationTemplate.Shared.Views/App.xaml.cs +++ b/src/app/ApplicationTemplate.Shared.Views/App.xaml.cs @@ -81,9 +81,11 @@ private void InitializeAndStart() #endif //+:cnd:noEmit +//-:cnd:noEmit #if DEBUG CurrentWindow.EnableHotReload(); #endif +//+:cnd:noEmit _ = Task.Run(() => Startup.Start()); }