[net7] Creating a cross-targeted `net7.0-ios` + `net6.0-ios` packages forces consumers to build with net7 workloads
See original GitHub issueFrom @jeromelaban on Mon, 31 Oct 2022 14:18:39 GMT
Creating a cross-targeted net7.0-ios
+ net6.0-ios
packages forces consumers to build with net7 workloads, causing dependents on net6.0 to fail building with the following message:
CSC : error CS1705: Assembly 'Uno.UI' with identity 'Uno.UI, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null'
uses 'Microsoft.iOS, Version=16.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065' which
has a higher version than referenced assembly 'Microsoft.iOS' with identity 'Microsoft.iOS, Version=15.4.300.0,
Culture=neutral, PublicKeyToken=84e04ff9cfb79065'
This means that any library author currently cannot build packages for net6.0 and net7.0 without resorting to manual package authoring and multi-builds with global.json
modifications.
Steps to Reproduce
- Install .NET 6.0.40x with ios workload
- Install .NET 7 RC2 with ios workload
- Create an empty library
- Pack for
<TargetFrameworks>net6.0-ios;net7.0-ios</TargetFramework>
Expected Behavior
net6.0-ios
binaries reference Microsoft.iOS
15.4.300.x
Actual Behavior
The net6.0-ios
binaries reference Microsoft.iOS
16.0.x
Environment
.NET 7.0 RC2 with workloads (VS 17.4 Preview 5)
Build Logs
I can provide those as needed.
As needed.
Example Project (If Possible)
Copied from original issue xamarin/xamarin-macios#16524
Issue Analytics
- State:
- Created 8 months ago
- Reactions:3
- Comments:28 (24 by maintainers)
Top Results From Across the Web
What's new in .NET MAUI for .NET 7
NET 6 and focuses on being unified, modern, simple, and fast. Due to working with underlying external dependencies, such as Xcode or Android...
Read more >Untitled
NET 7 SDK built-in container support and Ubuntu Chiseled“ can be used together. ... + `net6.0-ios` packages forces consumers to build with net7...
Read more >Does .NET MAUI actually work with iOS?? : r/dotnetMAUI
I'm having a *lot* of probs trying to get a plain-vanilla .NET MAUI app to run, from Visual Studio Mac (VSM) on iOS...
Read more >Setting up your Mac for .NET MAUI in 2023 | by Saurav Sahu
To run your app on mac, use the following command $ dotnet build -t:Run -f net7.0-maccatalyst. Running the .NET MAUI App on macOS....
Read more >Dotnet build linux. The answer you're looking for is basically
NET's cross -platform development abilities by building a Dockerized ASP. ... NET CLI command publishes the app as a container: Targeting Linux as...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jeromelaban this is the correct issue to follow
Current plan: https://github.com/xamarin/xamarin-macios/pull/18523