Skip to content

Has anyone successfully built xamarin ios project on AzureDevOps using multi targeting libraries with TargetFrameworks netstandard2.1 & net8.0 #21974

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nikamvd opened this issue Jan 14, 2025 · 1 comment

Comments

@nikamvd
Copy link

nikamvd commented Jan 14, 2025

Apple platform

iOS

Framework version

Other

Affected platform version

XamariniOS@2 task on vmImage: macos-13 on azure devops

Description

We migrated our Xamarin.Forms project to .NET MAUI (.net 8.0). We are still supporting our Xamarin.Forms project. The common organization level libraries now target multiple frameworks netstandard2.1;net8.0. .NET MAUI pipelines are working good. xamarin android pipeline is also working; however xamarin ios pipeline build task fails with error NETSDK1005: Assets file 'project.assets.json' doesn't have a target for '.NETFramework,Version=v8.0'. Ensure that restore has run and that you have included 'net80' in the TargetFrameworks for your project.

Has anyone successfully built xamarin ios project on AzureDevOps using multi targeting libraries?

Steps to Reproduce

We migrated our Xamarin.Forms project to .NET MAUI (.net 8.0). We are still supporting our Xamarin.Forms project. The common organization level libraries now target multiple frameworks netstandard2.1;net8.0. .NET MAUI pipelines are working good. xamarin android pipeline is also working; however xamarin ios pipeline build task fails with error NETSDK1005: Assets file 'project.assets.json' doesn't have a target for '.NETFramework,Version=v8.0'. Ensure that restore has run and that you have included 'net80' in the TargetFrameworks for your project.

Has anyone successfully built xamarin ios project on AzureDevOps using multi targeting libraries?

Did you find any workaround?

No

Build logs

No response

@rolfbjarne
Copy link
Member

This repository is for the .NET for iOS SDK - formerly known as Xamarin.iOS (but Xamarin.iOS is now out of support).

Because Xamarin.iOS is out of support, we won't investigate/support any issues related to it, which means that the broader developer community would be the best and quickest place for additional troubleshooting help on this issue.

Posting a question on Stack Overflow, the .NET on Q&A Forum or asking on Discord would be the best next step.

@rolfbjarne rolfbjarne closed this as not planned Won't fix, can't repro, duplicate, stale Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants