question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[net7] Creating a cross-targeted `net7.0-ios` + `net6.0-ios` packages forces consumers to build with net7 workloads

See original GitHub issue

From @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

  1. Install .NET 6.0.40x with ios workload
  2. Install .NET 7 RC2 with ios workload
  3. Create an empty library
  4. 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:open
  • Created 8 months ago
  • Reactions:3
  • Comments:28 (24 by maintainers)

github_iconTop GitHub Comments

1reaction
rolfbjarnecommented, Jun 8, 2023

@jeromelaban this is the correct issue to follow

0reactions
rolfbjarnecommented, Jun 30, 2023
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found