-
Couldn't load subscription status.
- Fork 264
Open
Labels
Area:ErrorHandlingwarnings and errors/log messages & related error codes.warnings and errors/log messages & related error codes.Partner:DotNetPartner:MauiPriority:3Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog.Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog.Type:DCRDesign Change RequestDesign Change Request
Description
NuGet Product(s) Involved
dotnet.exe
The Elevator Pitch
If I have a dotnet new maui project like:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net10.0-android;net10.0-ios;net10.0-maccatalyst</TargetFrameworks>And I install an Android-only <PackageReference>:
<ItemGroup>
<PackageReference Include="Xamarin.AndroidX.Core" Version="1.17.0" />
</ItemGroup>I get a long list of errors like:
> dotnet build
D:\src\hellomaui\hellomaui.csproj : error NU1202:
Package Xamarin.AndroidX.Core 1.17.0 is not compatible with net10.0-ios26.0 (.NETCoreApp,Version=v10.0). Package Xamarin.AndroidX.Core 1.17.0 supports:
- net10.0-android36.0 (.NETCoreApp,Version=v10.0)
- net8.0-android34.0 (.NETCoreApp,Version=v8.0)
D:\src\hellomaui\hellomaui.csproj : error NU1202:
Package Xamarin.AndroidX.Core 1.17.0 is not compatible with net10.0-maccatalyst26.0 (.NETCoreApp,Version=v10.0). Package Xamarin.AndroidX.Core 1.17.0 supports
:
- net10.0-android36.0 (.NETCoreApp,Version=v10.0)
- net8.0-android34.0 (.NETCoreApp,Version=v8.0)
D:\src\hellomaui\hellomaui.csproj : error NU1202:
Package Xamarin.AndroidX.Core 1.17.0 is not compatible with net10.0-windows10.0.19041 (.NETCoreApp,Version=v10.0). Package Xamarin.AndroidX.Core 1.17.0 suppor
ts:
- net10.0-android36.0 (.NETCoreApp,Version=v10.0)
- net8.0-android34.0 (.NETCoreApp,Version=v8.0)
D:\src\hellomaui\hellomaui.csproj : error NU1202:
Package Xamarin.AndroidX.Core 1.17.0 is not compatible with net10.0-ios26.0 (.NETCoreApp,Version=v10.0) / android-arm64. Package Xamarin.AndroidX.Core 1.17.0
supports:
- net10.0-android36.0 (.NETCoreApp,Version=v10.0)
- net8.0-android34.0 (.NETCoreApp,Version=v8.0)
D:\src\hellomaui\hellomaui.csproj : error NU1202:
Package Xamarin.AndroidX.Core 1.17.0 is not compatible with net10.0-ios26.0 (.NETCoreApp,Version=v10.0) / android-x64. Package Xamarin.AndroidX.Core 1.17.0 su
pports:
- net10.0-android36.0 (.NETCoreApp,Version=v10.0)
- net8.0-android34.0 (.NETCoreApp,Version=v8.0)
D:\src\hellomaui\hellomaui.csproj : error NU1202:
Package Xamarin.AndroidX.Core 1.17.0 is not compatible with net10.0-ios26.0 (.NETCoreApp,Version=v10.0) / iossimulator-x64. Package Xamarin.AndroidX.Core 1.17
.0 supports:
- net10.0-android36.0 (.NETCoreApp,Version=v10.0)
- net8.0-android34.0 (.NETCoreApp,Version=v8.0)
D:\src\hellomaui\hellomaui.csproj : error NU1202:
Package Xamarin.AndroidX.Core 1.17.0 is not compatible with net10.0-ios26.0 (.NETCoreApp,Version=v10.0) / maccatalyst-x64. Package Xamarin.AndroidX.Core 1.17.
0 supports:
- net10.0-android36.0 (.NETCoreApp,Version=v10.0)
- net8.0-android34.0 (.NETCoreApp,Version=v8.0)
D:\src\hellomaui\hellomaui.csproj : error NU1202:
Package Xamarin.AndroidX.Core 1.17.0 is not compatible with net10.0-ios26.0 (.NETCoreApp,Version=v10.0) / win-x64. Package Xamarin.AndroidX.Core 1.17.0 suppor
ts:
- net10.0-android36.0 (.NETCoreApp,Version=v10.0)
- net8.0-android34.0 (.NETCoreApp,Version=v8.0)
D:\src\hellomaui\hellomaui.csproj : error NU1202:
Package Xamarin.AndroidX.Core 1.17.0 is not compatible with net10.0-maccatalyst26.0 (.NETCoreApp,Version=v10.0) / android-arm64. Package Xamarin.AndroidX.Core
1.17.0 supports:
- net10.0-android36.0 (.NETCoreApp,Version=v10.0)
- net8.0-android34.0 (.NETCoreApp,Version=v8.0)
D:\src\hellomaui\hellomaui.csproj : error NU1202:
Package Xamarin.AndroidX.Core 1.17.0 is not compatible with net10.0-maccatalyst26.0 (.NETCoreApp,Version=v10.0) / android-x64. Package Xamarin.AndroidX.Core 1
.17.0 supports:
- net10.0-android36.0 (.NETCoreApp,Version=v10.0)
- net8.0-android34.0 (.NETCoreApp,Version=v8.0)
D:\src\hellomaui\hellomaui.csproj : error NU1202:
Package Xamarin.AndroidX.Core 1.17.0 is not compatible with net10.0-maccatalyst26.0 (.NETCoreApp,Version=v10.0) / iossimulator-x64. Package Xamarin.AndroidX.C
ore 1.17.0 supports:
- net10.0-android36.0 (.NETCoreApp,Version=v10.0)
- net8.0-android34.0 (.NETCoreApp,Version=v8.0)
D:\src\hellomaui\hellomaui.csproj : error NU1202:
Package Xamarin.AndroidX.Core 1.17.0 is not compatible with net10.0-maccatalyst26.0 (.NETCoreApp,Version=v10.0) / maccatalyst-x64. Package Xamarin.AndroidX.Co
re 1.17.0 supports:
- net10.0-android36.0 (.NETCoreApp,Version=v10.0)
- net8.0-android34.0 (.NETCoreApp,Version=v8.0)
D:\src\hellomaui\hellomaui.csproj : error NU1202:
Package Xamarin.AndroidX.Core 1.17.0 is not compatible with net10.0-maccatalyst26.0 (.NETCoreApp,Version=v10.0) / win-x64. Package Xamarin.AndroidX.Core 1.17.
0 supports:
- net10.0-android36.0 (.NETCoreApp,Version=v10.0)
- net8.0-android34.0 (.NETCoreApp,Version=v8.0)
D:\src\hellomaui\hellomaui.csproj : error NU1202:
Package Xamarin.AndroidX.Core 1.17.0 is not compatible with net10.0-windows10.0.19041 (.NETCoreApp,Version=v10.0) / android-arm64. Package Xamarin.AndroidX.Co
re 1.17.0 supports:
- net10.0-android36.0 (.NETCoreApp,Version=v10.0)
- net8.0-android34.0 (.NETCoreApp,Version=v8.0)
D:\src\hellomaui\hellomaui.csproj : error NU1202:
Package Xamarin.AndroidX.Core 1.17.0 is not compatible with net10.0-windows10.0.19041 (.NETCoreApp,Version=v10.0) / android-x64. Package Xamarin.AndroidX.Core
1.17.0 supports:
- net10.0-android36.0 (.NETCoreApp,Version=v10.0)
- net8.0-android34.0 (.NETCoreApp,Version=v8.0)
D:\src\hellomaui\hellomaui.csproj : error NU1202:
Package Xamarin.AndroidX.Core 1.17.0 is not compatible with net10.0-windows10.0.19041 (.NETCoreApp,Version=v10.0) / iossimulator-x64. Package Xamarin.AndroidX
.Core 1.17.0 supports:
- net10.0-android36.0 (.NETCoreApp,Version=v10.0)
- net8.0-android34.0 (.NETCoreApp,Version=v8.0)
D:\src\hellomaui\hellomaui.csproj : error NU1202:
Package Xamarin.AndroidX.Core 1.17.0 is not compatible with net10.0-windows10.0.19041 (.NETCoreApp,Version=v10.0) / maccatalyst-x64. Package Xamarin.AndroidX.
Core 1.17.0 supports:
- net10.0-android36.0 (.NETCoreApp,Version=v10.0)
- net8.0-android34.0 (.NETCoreApp,Version=v8.0)
D:\src\hellomaui\hellomaui.csproj : error NU1202:
Package Xamarin.AndroidX.Core 1.17.0 is not compatible with net10.0-windows10.0.19041 (.NETCoreApp,Version=v10.0) / win-x64. Package Xamarin.AndroidX.Core 1.1
7.0 supports:
- net10.0-android36.0 (.NETCoreApp,Version=v10.0)
- net8.0-android34.0 (.NETCoreApp,Version=v8.0)
Restore failed with 18 error(s) in 1.0s
Ideally, we'd improve (shorten!) the error message a bit here.
Additional Context and Details
Here is a .binlog: msbuild.zip
Metadata
Metadata
Assignees
Labels
Area:ErrorHandlingwarnings and errors/log messages & related error codes.warnings and errors/log messages & related error codes.Partner:DotNetPartner:MauiPriority:3Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog.Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog.Type:DCRDesign Change RequestDesign Change Request