From de4eecca9fa93756f2016347859de72e4dfe6be8 Mon Sep 17 00:00:00 2001 From: Pedro Jesus Date: Wed, 14 Feb 2024 18:28:31 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20FIX=20-=20fix=20unit=20tests=20(?= =?UTF-8?q?#1694)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pin Compatibility package to match Maui.Controls --- Directory.Build.props | 2 +- azure-pipelines.yml | 12 ++++++++++-- .../CommunityToolkit.Maui.Sample.csproj | 2 ++ .../CommunityToolkit.Maui.Analyzers.UnitTests.csproj | 2 ++ .../CommunityToolkit.Maui.Core.csproj | 2 +- .../CommunityToolkit.Maui.Maps.csproj | 3 ++- .../CommunityToolkit.Maui.MediaElement.csproj | 1 + .../CommunityToolkit.Maui.UnitTests.csproj | 2 ++ .../CommunityToolkit.Maui.csproj | 1 + 9 files changed, 22 insertions(+), 5 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 24b67c7b7..05a44c109 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -2,7 +2,7 @@ net8.0 - 8.0.3 + 8.0.6 latest enable enable diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f1079d4cb..4ec6cca6f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -21,6 +21,7 @@ variables: PathToCommunityToolkitAnalyzersCodeFixCsproj: 'src/CommunityToolkit.Maui.Analyzers.CodeFixes/CommunityToolkit.Maui.Analyzers.CodeFixes.csproj' PathToCommunityToolkitMediaElementAnalyzersCodeFixCsproj: 'src/CommunityToolkit.Maui.MediaElement.Analyzers.CodeFixes/CommunityToolkit.Maui.MediaElement.Analyzers.CodeFixes.csproj' PathToCommunityToolkitAnalyzersUnitTestCsproj: 'src/CommunityToolkit.Maui.Analyzers.UnitTests/CommunityToolkit.Maui.Analyzers.UnitTests.csproj' + DotNetMauiRollbackFile: 'https://maui.blob.core.windows.net/metadata/rollbacks/8.0.6.json' CommunityToolkitSampleApp_Xcode_Version: '15.1.0' CommunityToolkitLibrary_Xcode_Version: '15.0.1' @@ -71,8 +72,15 @@ jobs: version: '$(LATEST_NET_VERSION)' includePreviewVersions: false - - powershell: dotnet workload install maui --skip-sign-check --source https://api.nuget.org/v3/index.json - displayName: Install Latest .NET MAUI Workload + # Using rollback file is a workaround for a bug in the Azure Hosted Agent; it being used to force the latest MAUI workload manifest + # The rollback file should be removed in a future pull request once the bug has been fixed (likely on the next release of .NET 8) + # The subsequent workload installations can also be removed; we should only need to call `dotnet workload install maui --source https://api.nuget.org/v3/index.json`` + - task: CmdLine@2 + displayName: 'Install Latest .NET MAUI Workload' + inputs: + script: | + dotnet workload install maui --from-rollback-file $(DotNetMauiRollbackFile) --source https://api.nuget.org/v3/index.json + dotnet workload install maui - pwsh: | Invoke-WebRequest 'https://raw.githubusercontent.com/Samsung/Tizen.NET/main/workload/scripts/workload-install.ps1' -OutFile 'workload-install.ps1' diff --git a/samples/CommunityToolkit.Maui.Sample/CommunityToolkit.Maui.Sample.csproj b/samples/CommunityToolkit.Maui.Sample/CommunityToolkit.Maui.Sample.csproj index 27b8d665c..ab34b75cf 100644 --- a/samples/CommunityToolkit.Maui.Sample/CommunityToolkit.Maui.Sample.csproj +++ b/samples/CommunityToolkit.Maui.Sample/CommunityToolkit.Maui.Sample.csproj @@ -52,6 +52,8 @@ + + diff --git a/src/CommunityToolkit.Maui.Analyzers.UnitTests/CommunityToolkit.Maui.Analyzers.UnitTests.csproj b/src/CommunityToolkit.Maui.Analyzers.UnitTests/CommunityToolkit.Maui.Analyzers.UnitTests.csproj index fc9b2a63e..6d261d520 100644 --- a/src/CommunityToolkit.Maui.Analyzers.UnitTests/CommunityToolkit.Maui.Analyzers.UnitTests.csproj +++ b/src/CommunityToolkit.Maui.Analyzers.UnitTests/CommunityToolkit.Maui.Analyzers.UnitTests.csproj @@ -19,6 +19,8 @@ + + diff --git a/src/CommunityToolkit.Maui.Core/CommunityToolkit.Maui.Core.csproj b/src/CommunityToolkit.Maui.Core/CommunityToolkit.Maui.Core.csproj index 642007878..a15763c50 100644 --- a/src/CommunityToolkit.Maui.Core/CommunityToolkit.Maui.Core.csproj +++ b/src/CommunityToolkit.Maui.Core/CommunityToolkit.Maui.Core.csproj @@ -51,7 +51,7 @@ - + diff --git a/src/CommunityToolkit.Maui.Maps/CommunityToolkit.Maui.Maps.csproj b/src/CommunityToolkit.Maui.Maps/CommunityToolkit.Maui.Maps.csproj index 71981bb08..3886568d7 100644 --- a/src/CommunityToolkit.Maui.Maps/CommunityToolkit.Maui.Maps.csproj +++ b/src/CommunityToolkit.Maui.Maps/CommunityToolkit.Maui.Maps.csproj @@ -50,7 +50,8 @@ - + + diff --git a/src/CommunityToolkit.Maui.MediaElement/CommunityToolkit.Maui.MediaElement.csproj b/src/CommunityToolkit.Maui.MediaElement/CommunityToolkit.Maui.MediaElement.csproj index bcb309f0d..e74548809 100644 --- a/src/CommunityToolkit.Maui.MediaElement/CommunityToolkit.Maui.MediaElement.csproj +++ b/src/CommunityToolkit.Maui.MediaElement/CommunityToolkit.Maui.MediaElement.csproj @@ -64,5 +64,6 @@ + diff --git a/src/CommunityToolkit.Maui.UnitTests/CommunityToolkit.Maui.UnitTests.csproj b/src/CommunityToolkit.Maui.UnitTests/CommunityToolkit.Maui.UnitTests.csproj index b4c5d5f5f..4ebf08eff 100644 --- a/src/CommunityToolkit.Maui.UnitTests/CommunityToolkit.Maui.UnitTests.csproj +++ b/src/CommunityToolkit.Maui.UnitTests/CommunityToolkit.Maui.UnitTests.csproj @@ -16,6 +16,8 @@ + + diff --git a/src/CommunityToolkit.Maui/CommunityToolkit.Maui.csproj b/src/CommunityToolkit.Maui/CommunityToolkit.Maui.csproj index 15be2756a..858cb1cc9 100644 --- a/src/CommunityToolkit.Maui/CommunityToolkit.Maui.csproj +++ b/src/CommunityToolkit.Maui/CommunityToolkit.Maui.csproj @@ -64,6 +64,7 @@ +