diff --git a/build-tools/automation/azure-pipelines.yaml b/build-tools/automation/azure-pipelines.yaml index 35600efb7db..571796a120f 100644 --- a/build-tools/automation/azure-pipelines.yaml +++ b/build-tools/automation/azure-pipelines.yaml @@ -33,7 +33,7 @@ resources: - repository: maui type: github name: dotnet/maui - ref: refs/heads/net8.0 + ref: refs/heads/net9.0 endpoint: xamarin parameters: @@ -406,6 +406,14 @@ stages: displayName: Create MAUI template continueOnError: false + - powershell: | + $project = '$(Build.StagingDirectory)/MauiTestProj/MauiTestProj.csproj' + [xml] $xml = Get-Content $project + $node = $xml.SelectSingleNode('/Project/PropertyGroup/TargetFrameworks') + $node.InnerText = '$(DotNetTargetFramework)-android' + $xml.Save($project) + displayName: set TargetFrameworks to Android-only + - template: yaml-templates/run-dotnet-preview.yaml parameters: project: $(Build.StagingDirectory)/MauiTestProj/MauiTestProj.csproj