Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Patch $(TargetFrameworks)
To avoid failure during `restore`:

    error NETSDK1139: The target platform identifier ios was not recognized.
  • Loading branch information
jonathanpeppers committed Jan 4, 2024
commit ae88141f79e02f181e18414074b2593dee24045d
7 changes: 7 additions & 0 deletions build-tools/automation/azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,13 @@ stages:
displayName: Create MAUI template
continueOnError: false

- powershell: >-
[xml] $xml = Get-Content $(Build.StagingDirectory)/MauiTestProj/MauiTestProj.csproj
$node = $xml.SelectSingleNode("/Project/PropertyGroup/TargetFrameworks")
$node.Value = $(DotNetTargetFramework)-android
$xml.Save($(Build.StagingDirectory)/MauiTestProj/MauiTestProj.csproj)
displayName: set TargetFrameworks to Android-only

- template: yaml-templates/run-dotnet-preview.yaml
parameters:
project: $(Build.StagingDirectory)/MauiTestProj/MauiTestProj.csproj
Expand Down