dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.48k stars 4.76k forks source link

Package Microsoft.Extensions.DependencyInjection 8.0.0 is not compatible with net80-android #98541

Closed jitendrajadav closed 9 months ago

jitendrajadav commented 9 months ago

Description

Net MAUI Project creating Pipeline having issue with compatible several packages one of example is here Package Microsoft.Extensions.DependencyInjection 8.0.0 is not compatible with net80-android

our project is in .net 8 MAUI all packages is upto date with latest nuget version.

here is some brief logs

2024-02-15T13:08:19.6359720Z ##[section]Starting: NuGetCommand
2024-02-15T13:08:19.6369650Z ==============================================================================
2024-02-15T13:08:19.6369790Z Task         : NuGet
2024-02-15T13:08:19.6369860Z Description  : Restore, pack, or push NuGet packages, or run a NuGet command. Supports NuGet.org and authenticated feeds like Azure Artifacts and MyGet. Uses NuGet.exe and works with .NET Framework apps. For .NET Core and .NET Standard apps, use the .NET Core task.
2024-02-15T13:08:19.6370070Z Version      : 2.231.0
2024-02-15T13:08:19.6370150Z Author       : Microsoft Corporation
2024-02-15T13:08:19.6370220Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/package/nuget
2024-02-15T13:08:19.6370310Z ==============================================================================
2024-02-15T13:08:20.0727950Z Caching tool: NuGet 4.9.6 x64
2024-02-15T13:08:20.0951440Z Found tool in cache: NuGet 4.9.6 x64
2024-02-15T13:08:20.0994010Z Resolved from tool cache: 4.9.6
2024-02-15T13:08:20.0994600Z Using version: 4.9.6
2024-02-15T13:08:20.0999350Z Found tool in cache: NuGet 4.9.6 x64
2024-02-15T13:08:20.6004490Z Detected NuGet version 4.9.6.8 / 4.9.6+a32bce39889f724fbd11cfd12e946f802168b583
2024-02-15T13:08:20.6232510Z [command]/Library/Frameworks/Mono.framework/Versions/Current/Commands/mono /Users/runner/hostedtoolcache/NuGet/4.9.6/x64/nuget.exe restore /Users/runner/work/1/s/...sln -Verbosity Detailed -NonInteractive -ConfigFile /Users/runner/work/1/Nuget/tempNuGet_2054.config
2024-02-15T13:09:03.3570700Z NuGet Version: 4.9.6.8
2024-02-15T13:09:03.3571480Z MSBuild auto-detection: using msbuild version '15.0' from '/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/15.0/bin'. Use option -MSBuildVersion to force nuget to use a specific version of MSBuild.
2024-02-15T13:09:03.3573210Z NU1202: Package AutoMapper.Extensions.Microsoft.DependencyInjection 12.0.1 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package AutoMapper.Extensions.Microsoft.DependencyInjection 12.0.1 supports: netstandard2.1 (.NETStandard,Version=v2.1)
2024-02-15T13:09:03.3573840Z NU1202: Package CommunityToolkit.Maui 7.0.1 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package CommunityToolkit.Maui 7.0.1 supports:
2024-02-15T13:09:03.3574230Z   - net80 (.NETFramework,Version=v8.0)
2024-02-15T13:09:03.3574520Z   - net80-android34.0 (.NETFramework,Version=v8.0,Profile=android34.0)
2024-02-15T13:09:03.3574800Z   - net80-ios17.0 (.NETFramework,Version=v8.0,Profile=ios17.0)
2024-02-15T13:09:03.3575100Z   - net80-maccatalyst17.0 (.NETFramework,Version=v8.0,Profile=maccatalyst17.0)
2024-02-15T13:09:03.3575390Z   - net80-tizen8.0 (.NETFramework,Version=v8.0,Profile=tizen8.0)
2024-02-15T13:09:03.3575680Z   - net80-windows10.0.19041 (.NETFramework,Version=v8.0,Profile=windows10.0.19041)
2024-02-15T13:09:03.3576200Z NU1202: Package Microsoft.Extensions.DependencyInjection 8.0.0 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package Microsoft.Extensions.DependencyInjection 8.0.0 supports:
2024-02-15T13:09:03.3576540Z   - net462 (.NETFramework,Version=v4.6.2)
2024-02-15T13:09:03.3576770Z   - net60 (.NETFramework,Version=v6.0)
2024-02-15T13:09:03.3576990Z   - net70 (.NETFramework,Version=v7.0)
2024-02-15T13:09:03.3577220Z   - net80 (.NETFramework,Version=v8.0)
2024-02-15T13:09:03.3577450Z   - netstandard2.0 (.NETStandard,Version=v2.0)
2024-02-15T13:09:03.3577680Z   - netstandard2.1 (.NETStandard,Version=v2.1)
2024-02-15T13:09:03.3578110Z NU1202: Package CommunityToolkit.Mvvm 8.2.2 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package CommunityToolkit.Mvvm 8.2.2 supports:
2024-02-15T13:09:03.3578410Z   - net60 (.NETFramework,Version=v6.0)
2024-02-15T13:09:03.3578660Z   - netstandard2.0 (.NETStandard,Version=v2.0)
2024-02-15T13:09:03.3578890Z   - netstandard2.1 (.NETStandard,Version=v2.1)
2024-02-15T13:09:03.3579340Z NU1202: Package Microsoft.Extensions.Logging 8.0.0 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package Microsoft.Extensions.Logging 8.0.0 supports:
2024-02-15T13:09:03.3580360Z   - net462 (.NETFramework,Version=v4.6.2)
2024-02-15T13:09:03.3580600Z   - net60 (.NETFramework,Version=v6.0)
2024-02-15T13:09:03.3580820Z   - net70 (.NETFramework,Version=v7.0)
2024-02-15T13:09:03.3581030Z   - net80 (.NETFramework,Version=v8.0)
2024-02-15T13:09:03.3581270Z   - netstandard2.0 (.NETStandard,Version=v2.0)
2024-02-15T13:09:03.3581500Z   - netstandard2.1 (.NETStandard,Version=v2.1)
2024-02-15T13:09:03.3581970Z NU1202: Package Microsoft.Maui.Controls.Compatibility 8.0.6 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package Microsoft.Maui.Controls.Compatibility 8.0.6 supports:
2024-02-15T13:09:03.3582300Z   - net80 (.NETFramework,Version=v8.0)
2024-02-15T13:09:03.3582570Z   - net80-android34.0 (.NETFramework,Version=v8.0,Profile=android34.0)
2024-02-15T13:09:03.3582860Z   - net80-ios17.0 (.NETFramework,Version=v8.0,Profile=ios17.0)
2024-02-15T13:09:03.3583150Z   - net80-maccatalyst17.0 (.NETFramework,Version=v8.0,Profile=maccatalyst17.0)
2024-02-15T13:09:03.3583450Z   - net80-tizen8.0 (.NETFramework,Version=v8.0,Profile=tizen8.0)
2024-02-15T13:09:03.3583740Z   - net80-windows10.0.19041 (.NETFramework,Version=v8.0,Profile=windows10.0.19041)
2024-02-15T13:09:03.3584070Z   - net80-windows10.0.20348 (.NETFramework,Version=v8.0,Profile=windows10.0.20348)
2024-02-15T13:09:03.3584330Z   - netstandard2.0 (.NETStandard,Version=v2.0)
2024-02-15T13:09:03.3584550Z   - netstandard2.1 (.NETStandard,Version=v2.1)
2024-02-15T13:09:03.3584990Z NU1202: Package Microsoft.Maui.Essentials 8.0.6 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package Microsoft.Maui.Essentials 8.0.6 supports:
2024-02-15T13:09:03.3585590Z   - net70 (.NETFramework,Version=v7.0)
2024-02-15T13:09:03.3586020Z   - net70-android33.0 (.NETFramework,Version=v7.0,Profile=android33.0)
2024-02-15T13:09:03.3586300Z   - net70-ios16.1 (.NETFramework,Version=v7.0,Profile=ios16.1)
2024-02-15T13:09:03.3586620Z   - net70-maccatalyst16.1 (.NETFramework,Version=v7.0,Profile=maccatalyst16.1)
2024-02-15T13:09:03.3586900Z   - net70-tizen7.0 (.NETFramework,Version=v7.0,Profile=tizen7.0)
2024-02-15T13:09:03.3587190Z   - net70-windows10.0.19041 (.NETFramework,Version=v7.0,Profile=windows10.0.19041)
2024-02-15T13:09:03.3587520Z   - net70-windows10.0.20348 (.NETFramework,Version=v7.0,Profile=windows10.0.20348)
2024-02-15T13:09:03.3587760Z   - net80 (.NETFramework,Version=v8.0)
2024-02-15T13:09:03.3588040Z   - net80-android34.0 (.NETFramework,Version=v8.0,Profile=android34.0)
2024-02-15T13:09:03.3588310Z   - net80-ios17.0 (.NETFramework,Version=v8.0,Profile=ios17.0)
2024-02-15T13:09:03.3588610Z   - net80-maccatalyst17.0 (.NETFramework,Version=v8.0,Profile=maccatalyst17.0)
2024-02-15T13:09:03.3588900Z   - net80-tizen8.0 (.NETFramework,Version=v8.0,Profile=tizen8.0)
2024-02-15T13:09:03.3589190Z   - net80-windows10.0.19041 (.NETFramework,Version=v8.0,Profile=windows10.0.19041)
2024-02-15T13:09:03.3589530Z   - net80-windows10.0.20348 (.NETFramework,Version=v8.0,Profile=windows10.0.20348)
2024-02-15T13:09:03.3589780Z   - netstandard2.0 (.NETStandard,Version=v2.0)
2024-02-15T13:09:03.3590030Z   - netstandard2.1 (.NETStandard,Version=v2.1)
2024-02-15T13:09:03.3590420Z NU1202: Package System.Reactive 6.0.0 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package System.Reactive 6.0.0 supports:
2024-02-15T13:09:03.3590730Z   - net472 (.NETFramework,Version=v4.7.2)
2024-02-15T13:09:03.3590950Z   - net60 (.NETFramework,Version=v6.0)
2024-02-15T13:09:03.3591230Z   - net60-windows10.0.19041 (.NETFramework,Version=v6.0,Profile=windows10.0.19041)
2024-02-15T13:09:03.3591500Z   - netstandard2.0 (.NETStandard,Version=v2.0)
2024-02-15T13:09:03.3591740Z   - uap10.0.18362 (UAP,Version=v10.0.18362)
2024-02-15T13:09:03.3592360Z NU1202: Package SyrianBallaS.AutoMapper.Extensions.Microsoft.DependencyInjection.Signed 3.2.0 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package SyrianBallaS.AutoMapper.Extensions.Microsoft.DependencyInjection.Signed 3.2.0 supports: netstandard2.0 (.NETStandard,Version=v2.0)
2024-02-15T13:09:03.3593470Z NU1202: Package AutoMapper.Extensions.Microsoft.DependencyInjection 12.0.1 is not compatible with net80-ios (.NETFramework,Version=v8.0,Profile=ios). Package AutoMapper.Extensions.Microsoft.DependencyInjection 12.0.1 supports: netstandard2.1 (.NETStandard,Version=v2.1)
2024-02-15T13:09:03.3594030Z NU1202: Package CommunityToolkit.Maui 7.0.1 is not compatible with net80-ios (.NETFramework,Version=v8.0,Profile=ios). Package CommunityToolkit.Maui 7.0.1 supports:
2024-02-15T13:09:03.3594330Z   - net80 (.NETFramework,Version=v8.0)
2024-02-15T13:09:03.3594610Z   - net80-android34.0 (.NETFramework,Version=v8.0,Profile=android34.0)
2024-02-15T13:09:03.3594890Z   - net80-ios17.0 (.NETFramework,Version=v8.0,Profile=ios17.0)
2024-02-15T13:09:03.3595190Z   - net80-maccatalyst17.0 (.NETFramework,Version=v8.0,Profile=maccatalyst17.0)
2024-02-15T13:09:03.3595480Z   - net80-tizen8.0 (.NETFramework,Version=v8.0,Profile=tizen8.0)
2024-02-15T13:09:03.3595770Z   - net80-windows10.0.19041 (.NETFramework,Version=v8.0,Profile=windows10.0.19041)
2024-02-15T13:09:03.3596270Z NU1202: Package Microsoft.Extensions.DependencyInjection 8.0.0 is not compatible with net80-ios (.NETFramework,Version=v8.0,Profile=ios). Package Microsoft.Extensions.DependencyInjection 8.0.0 supports:
2024-02-15T13:09:03.3596590Z   - net462 (.NETFramework,Version=v4.6.2)
2024-02-15T13:09:03.3596820Z   - net60 (.NETFramework,Version=v6.0)
2024-02-15T13:09:03.3597040Z   - net70 (.NETFramework,Version=v7.0)
2024-02-15T13:09:03.3597270Z   - net80 (.NETFramework,Version=v8.0)
2024-02-15T13:09:03.3597500Z   - netstandard2.0 (.NETStandard,Version=v2.0)
2024-02-15T13:09:03.3598000Z   - netstandard2.1 (.NETStandard,Version=v2.1)
2024-02-15T13:09:03.3598420Z NU1202: Package CommunityToolkit.Mvvm 8.2.2 is not compatible with net80-ios (.NETFramework,Version=v8.0,Profile=ios). Package CommunityToolkit.Mvvm 8.2.2 supports:
2024-02-15T13:09:03.3598720Z   - net60 (.NETFramework,Version=v6.0)
2024-02-15T13:09:03.3598970Z   - netstandard2.0 (.NETStandard,Version=v2.0)
2024-02-15T13:09:03.3599200Z   - netstandard2.1 (.NETStandard,Version=v2.1)
2024-02-15T13:09:03.3599630Z NU1202: Package Microsoft.Extensions.Logging 8.0.0 is not compatible with net80-ios (.NETFramework,Version=v8.0,Profile=ios). Package Microsoft.Extensions.Logging 8.0.0 supports:
2024-02-15T13:09:03.3599950Z   - net462 (.NETFramework,Version=v4.6.2)
2024-02-15T13:09:03.3600170Z   - net60 (.NETFramework,Version=v6.0)
2024-02-15T13:09:03.3600390Z   - net70 (.NETFramework,Version=v7.0)
2024-02-15T13:09:03.3600600Z   - net80 (.NETFramework,Version=v8.0)
2024-02-15T13:09:03.3600850Z   - netstandard2.0 (.NETStandard,Version=v2.0)
2024-02-15T13:09:03.3601080Z   - netstandard2.1 (.NETStandard,Version=v2.1)
2024-02-15T13:09:03.3601530Z NU1202: Package Microsoft.Maui.Controls.Compatibility 8.0.6 is not compatible with net80-ios (.NETFramework,Version=v8.0,Profile=ios). Package Microsoft.Maui.Controls.Compatibility 8.0.6 supports:
2024-02-15T13:09:03.3601850Z   - net80 (.NETFramework,Version=v8.0)
2024-02-15T13:09:03.3602110Z   - net80-android34.0 (.NETFramework,Version=v8.0,Profile=android34.0)
2024-02-15T13:09:03.3602400Z   - net80-ios17.0 (.NETFramework,Version=v8.0,Profile=ios17.0)
2024-02-15T13:09:03.3602690Z   - net80-maccatalyst17.0 (.NETFramework,Version=v8.0,Profile=maccatalyst17.0)
2024-02-15T13:09:03.3602990Z   - net80-tizen8.0 (.NETFramework,Version=v8.0,Profile=tizen8.0)
2024-02-15T13:09:03.3603290Z   - net80-windows10.0.19041 (.NETFramework,Version=v8.0,Profile=windows10.0.19041)
2024-02-15T13:09:03.3603610Z   - net80-windows10.0.20348 (.NETFramework,Version=v8.0,Profile=windows10.0.20348)
2024-02-15T13:09:03.3603870Z   - netstandard2.0 (.NETStandard,Version=v2.0)
2024-02-15T13:09:03.3604100Z   - netstandard2.1 (.NETStandard,Version=v2.1)
2024-02-15T13:09:03.3604520Z NU1202: Package Microsoft.Maui.Essentials 8.0.6 is not compatible with net80-ios (.NETFramework,Version=v8.0,Profile=ios). Package Microsoft.Maui.Essentials 8.0.6 supports:
2024-02-15T13:09:03.3605170Z   - net70 (.NETFramework,Version=v7.0)
2024-02-15T13:09:03.3605450Z   - net70-android33.0 (.NETFramework,Version=v7.0,Profile=android33.0)
2024-02-15T13:09:03.3605720Z   - net70-ios16.1 (.NETFramework,Version=v7.0,Profile=ios16.1)
2024-02-15T13:09:03.3606180Z   - net70-maccatalyst16.1 (.NETFramework,Version=v7.0,Profile=maccatalyst16.1)
2024-02-15T13:09:03.3606470Z   - net70-tizen7.0 (.NETFramework,Version=v7.0,Profile=tizen7.0)
2024-02-15T13:09:03.3607050Z   - net70-windows10.0.19041 (.NETFramework,Version=v7.0,Profile=windows10.0.19041)
2024-02-15T13:09:03.3607660Z   - net70-windows10.0.20348 (.NETFramework,Version=v7.0,Profile=windows10.0.20348)
2024-02-15T13:09:03.3607940Z   - net80 (.NETFramework,Version=v8.0)
2024-02-15T13:09:03.3609060Z   - net80-android34.0 (.NETFramework,Version=v8.0,Profile=android34.0)
2024-02-15T13:09:03.3609360Z   - net80-ios17.0 (.NETFramework,Version=v8.0,Profile=ios17.0)
2024-02-15T13:09:03.3609730Z   - net80-maccatalyst17.0 (.NETFramework,Version=v8.0,Profile=maccatalyst17.0)
2024-02-15T13:09:03.3610180Z   - net80-tizen8.0 (.NETFramework,Version=v8.0,Profile=tizen8.0)
2024-02-15T13:09:03.3610490Z   - net80-windows10.0.19041 (.NETFramework,Version=v8.0,Profile=windows10.0.19041)
2024-02-15T13:09:03.3610820Z   - net80-windows10.0.20348 (.NETFramework,Version=v8.0,Profile=windows10.0.20348)
2024-02-15T13:09:03.3611080Z   - netstandard2.0 (.NETStandard,Version=v2.0)
2024-02-15T13:09:03.3611330Z   - netstandard2.1 (.NETStandard,Version=v2.1)
2024-02-15T13:09:03.3611730Z NU1202: Package System.Reactive 6.0.0 is not compatible with net80-ios (.NETFramework,Version=v8.0,Profile=ios). Package System.Reactive 6.0.0 supports:
2024-02-15T13:09:03.3612450Z   - net472 (.NETFramework,Version=v4.7.2)
2024-02-15T13:09:03.3612680Z   - net60 (.NETFramework,Version=v6.0)
2024-02-15T13:09:03.3612970Z   - net60-windows10.0.19041 (.NETFramework,Version=v6.0,Profile=windows10.0.19041)
2024-02-15T13:09:03.3613260Z   - netstandard2.0 (.NETStandard,Version=v2.0)
2024-02-15T13:09:03.3613490Z   - uap10.0.18362 (UAP,Version=v10.0.18362)
2024-02-15T13:09:03.3614110Z NU1202: Package SyrianBallaS.AutoMapper.Extensions.Microsoft.DependencyInjection.Signed 3.2.0 is not compatible with net80-ios (.NETFramework,Version=v8.0,Profile=ios). Package SyrianBallaS.AutoMapper.Extensions.Microsoft.DependencyInjection.Signed 3.2.0 supports: netstandard2.0 (.NETStandard,Version=v2.0)
2024-02-15T13:09:03.3614850Z NU1202: Package AutoMapper.Extensions.Microsoft.DependencyInjection 12.0.1 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package AutoMapper.Extensions.Microsoft.DependencyInjection 12.0.1 supports: netstandard2.1 (.NETStandard,Version=v2.1)
2024-02-15T13:09:03.3615610Z NU1202: Package Microsoft.Maui.Essentials 8.0.6 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package Microsoft.Maui.Essentials 8.0.6 supports:
2024-02-15T13:09:03.3615950Z   - net70 (.NETFramework,Version=v7.0)
2024-02-15T13:09:03.3616230Z   - net70-android33.0 (.NETFramework,Version=v7.0,Profile=android33.0)
2024-02-15T13:09:03.3616510Z   - net70-ios16.1 (.NETFramework,Version=v7.0,Profile=ios16.1)
2024-02-15T13:09:03.3616820Z   - net70-maccatalyst16.1 (.NETFramework,Version=v7.0,Profile=maccatalyst16.1)
2024-02-15T13:09:03.3617110Z   - net70-tizen7.0 (.NETFramework,Version=v7.0,Profile=tizen7.0)
2024-02-15T13:09:03.3617410Z   - net70-windows10.0.19041 (.NETFramework,Version=v7.0,Profile=windows10.0.19041)
2024-02-15T13:09:03.3618500Z   - net70-windows10.0.20348 (.NETFramework,Version=v7.0,Profile=windows10.0.20348)
2024-02-15T13:09:03.3618840Z   - net80 (.NETFramework,Version=v8.0)
2024-02-15T13:09:03.3619150Z   - net80-android34.0 (.NETFramework,Version=v8.0,Profile=android34.0)
2024-02-15T13:09:03.3619420Z   - net80-ios17.0 (.NETFramework,Version=v8.0,Profile=ios17.0)
2024-02-15T13:09:03.3619730Z   - net80-maccatalyst17.0 (.NETFramework,Version=v8.0,Profile=maccatalyst17.0)
2024-02-15T13:09:03.3620450Z   - net80-tizen8.0 (.NETFramework,Version=v8.0,Profile=tizen8.0)
2024-02-15T13:09:03.3620750Z   - net80-windows10.0.19041 (.NETFramework,Version=v8.0,Profile=windows10.0.19041)
2024-02-15T13:09:03.3621090Z   - net80-windows10.0.20348 (.NETFramework,Version=v8.0,Profile=windows10.0.20348)
2024-02-15T13:09:03.3621340Z   - netstandard2.0 (.NETStandard,Version=v2.0)
2024-02-15T13:09:03.3621590Z   - netstandard2.1 (.NETStandard,Version=v2.1)
2024-02-15T13:09:03.3622680Z NU1202: Package SyrianBallaS.AutoMapper.Extensions.Microsoft.DependencyInjection.Signed 3.2.0 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package SyrianBallaS.AutoMapper.Extensions.Microsoft.DependencyInjection.Signed 3.2.0 supports: netstandard2.0 (.NETStandard,Version=v2.0)
2024-02-15T13:09:03.3623490Z NU1202: Package System.Reactive 6.0.0 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package System.Reactive 6.0.0 supports:
2024-02-15T13:09:03.3623800Z   - net472 (.NETFramework,Version=v4.7.2)
2024-02-15T13:09:03.3624050Z   - net60 (.NETFramework,Version=v6.0)
2024-02-15T13:09:03.3624330Z   - net60-windows10.0.19041 (.NETFramework,Version=v6.0,Profile=windows10.0.19041)
2024-02-15T13:09:03.3624590Z   - netstandard2.0 (.NETStandard,Version=v2.0)
2024-02-15T13:09:03.3624850Z   - uap10.0.18362 (UAP,Version=v10.0.18362)
2024-02-15T13:09:03.3625280Z NU1202: Package Microsoft.Extensions.Logging 8.0.0 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package Microsoft.Extensions.Logging 8.0.0 supports:
2024-02-15T13:09:03.3625610Z   - net462 (.NETFramework,Version=v4.6.2)
2024-02-15T13:09:03.3625840Z   - net60 (.NETFramework,Version=v6.0)
2024-02-15T13:09:03.3626580Z   - net70 (.NETFramework,Version=v7.0)
2024-02-15T13:09:03.3626810Z   - net80 (.NETFramework,Version=v8.0)
2024-02-15T13:09:03.3627040Z   - netstandard2.0 (.NETStandard,Version=v2.0)
2024-02-15T13:09:03.3627310Z   - netstandard2.1 (.NETStandard,Version=v2.1)
2024-02-15T13:09:03.3627770Z NU1202: Package Microsoft.Maui.Controls.Compatibility 8.0.6 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package Microsoft.Maui.Controls.Compatibility 8.0.6 supports:
2024-02-15T13:09:03.3628110Z   - net80 (.NETFramework,Version=v8.0)
2024-02-15T13:09:03.3628380Z   - net80-android34.0 (.NETFramework,Version=v8.0,Profile=android34.0)
2024-02-15T13:09:03.3628660Z   - net80-ios17.0 (.NETFramework,Version=v8.0,Profile=ios17.0)
2024-02-15T13:09:03.3628960Z   - net80-maccatalyst17.0 (.NETFramework,Version=v8.0,Profile=maccatalyst17.0)
2024-02-15T13:09:03.3629250Z   - net80-tizen8.0 (.NETFramework,Version=v8.0,Profile=tizen8.0)
2024-02-15T13:09:03.3629570Z   - net80-windows10.0.19041 (.NETFramework,Version=v8.0,Profile=windows10.0.19041)
2024-02-15T13:09:03.3629890Z   - net80-windows10.0.20348 (.NETFramework,Version=v8.0,Profile=windows10.0.20348)
2024-02-15T13:09:03.3630170Z   - netstandard2.0 (.NETStandard,Version=v2.0)
2024-02-15T13:09:03.3630410Z   - netstandard2.1 (.NETStandard,Version=v2.1)
2024-02-15T13:09:03.3630820Z NU1202: Package Newtonsoft.Json 13.0.3 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package Newtonsoft.Json 13.0.3 supports:
2024-02-15T13:09:03.3631130Z   - net20 (.NETFramework,Version=v2.0)
2024-02-15T13:09:03.3631350Z   - net35 (.NETFramework,Version=v3.5)
2024-02-15T13:09:03.3631580Z   - net40 (.NETFramework,Version=v4.0)
2024-02-15T13:09:03.3631800Z   - net45 (.NETFramework,Version=v4.5)
2024-02-15T13:09:03.3632040Z   - net60 (.NETFramework,Version=v6.0)
2024-02-15T13:09:03.3632270Z   - netstandard1.0 (.NETStandard,Version=v1.0)
2024-02-15T13:09:03.3632500Z   - netstandard1.3 (.NETStandard,Version=v1.3)
2024-02-15T13:09:03.3632770Z   - netstandard2.0 (.NETStandard,Version=v2.0)
2024-02-15T13:09:03.3633180Z NU1202: Package CommunityToolkit.Maui 7.0.1 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package CommunityToolkit.Maui 7.0.1 supports:
2024-02-15T13:09:03.3633930Z   - net80 (.NETFramework,Version=v8.0)
2024-02-15T13:09:03.3634710Z   - net80-android34.0 (.NETFramework,Version=v8.0,Profile=android34.0)
2024-02-15T13:09:03.3635050Z   - net80-ios17.0 (.NETFramework,Version=v8.0,Profile=ios17.0)
2024-02-15T13:09:03.3635350Z   - net80-maccatalyst17.0 (.NETFramework,Version=v8.0,Profile=maccatalyst17.0)
2024-02-15T13:09:03.3635630Z   - net80-tizen8.0 (.NETFramework,Version=v8.0,Profile=tizen8.0)
2024-02-15T13:09:03.3635950Z   - net80-windows10.0.19041 (.NETFramework,Version=v8.0,Profile=windows10.0.19041)
2024-02-15T13:09:03.3639190Z NU1202: Package Microsoft.Extensions.DependencyInjection 8.0.0 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package Microsoft.Extensions.DependencyInjection 8.0.0 supports:
2024-02-15T13:09:03.3639730Z   - net462 (.NETFramework,Version=v4.6.2)
2024-02-15T13:09:03.3640000Z   - net60 (.NETFramework,Version=v6.0)
2024-02-15T13:09:03.3640300Z   - net70 (.NETFramework,Version=v7.0)
2024-02-15T13:09:03.3642870Z   - net80 (.NETFramework,Version=v8.0)
2024-02-15T13:09:03.3643210Z   - netstandard2.0 (.NETStandard,Version=v2.0)
2024-02-15T13:09:03.3644330Z   - netstandard2.1 (.NETStandard,Version=v2.1)

Reproduction Steps

1 - We have project ready with Maui dot net 8.0 and trying to create CICD pipeline. 2 - We have created a yaml file with macos agent to build this app using nuget packages from feed like - nuget.urg,telerik, and azure artifacts feeds. 3 - we have also added a task to download and install dependency workloads for android and IOS. 4 - we are failing at nuget restore task as mentioned in above with lot of packages are not compatible with net8.0-android and net8.0 IOS.

Expected behavior

It should restore without any error

Actual behavior

getting compatibility issue like 2024-02-15T13:09:03.3581970Z NU1202: Package Microsoft.Maui.Controls.Compatibility 8.0.6 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package Microsoft.Maui.Controls.Compatibility 8.0.6 supports:

Regression?

No response

Known Workarounds

.net maui 8 workload

Configuration

Version : .net 8 workload OS : mac os latest Architecture : x64

Other information

we are able run locally project and also restoring without any errors, problem is only having while creating pipeline yaml file restoring nuget packages compatibility issue is getting

ghost commented 9 months ago

Tagging subscribers to 'arch-android': @steveisok, @akoeplinger See info in area-owners.md if you want to be subscribed.

Issue Details
### Description Net MAUI Project creating Pipeline having issue with compatible several packages one of example is here `Package Microsoft.Extensions.DependencyInjection 8.0.0 is not compatible with net80-android ` our project is in .net 8 MAUI all packages is upto date with latest nuget version. here is some brief logs `2024-02-15T13:08:19.6359720Z ##[section]Starting: NuGetCommand 2024-02-15T13:08:19.6369650Z ============================================================================== 2024-02-15T13:08:19.6369790Z Task : NuGet 2024-02-15T13:08:19.6369860Z Description : Restore, pack, or push NuGet packages, or run a NuGet command. Supports NuGet.org and authenticated feeds like Azure Artifacts and MyGet. Uses NuGet.exe and works with .NET Framework apps. For .NET Core and .NET Standard apps, use the .NET Core task. 2024-02-15T13:08:19.6370070Z Version : 2.231.0 2024-02-15T13:08:19.6370150Z Author : Microsoft Corporation 2024-02-15T13:08:19.6370220Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/package/nuget 2024-02-15T13:08:19.6370310Z ============================================================================== 2024-02-15T13:08:20.0727950Z Caching tool: NuGet 4.9.6 x64 2024-02-15T13:08:20.0951440Z Found tool in cache: NuGet 4.9.6 x64 2024-02-15T13:08:20.0994010Z Resolved from tool cache: 4.9.6 2024-02-15T13:08:20.0994600Z Using version: 4.9.6 2024-02-15T13:08:20.0999350Z Found tool in cache: NuGet 4.9.6 x64 2024-02-15T13:08:20.6004490Z Detected NuGet version 4.9.6.8 / 4.9.6+a32bce39889f724fbd11cfd12e946f802168b583 2024-02-15T13:08:20.6232510Z [command]/Library/Frameworks/Mono.framework/Versions/Current/Commands/mono /Users/runner/hostedtoolcache/NuGet/4.9.6/x64/nuget.exe restore /Users/runner/work/1/s/...sln -Verbosity Detailed -NonInteractive -ConfigFile /Users/runner/work/1/Nuget/tempNuGet_2054.config 2024-02-15T13:09:03.3570700Z NuGet Version: 4.9.6.8 2024-02-15T13:09:03.3571480Z MSBuild auto-detection: using msbuild version '15.0' from '/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/15.0/bin'. Use option -MSBuildVersion to force nuget to use a specific version of MSBuild. 2024-02-15T13:09:03.3573210Z NU1202: Package AutoMapper.Extensions.Microsoft.DependencyInjection 12.0.1 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package AutoMapper.Extensions.Microsoft.DependencyInjection 12.0.1 supports: netstandard2.1 (.NETStandard,Version=v2.1) 2024-02-15T13:09:03.3573840Z NU1202: Package CommunityToolkit.Maui 7.0.1 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package CommunityToolkit.Maui 7.0.1 supports: 2024-02-15T13:09:03.3574230Z - net80 (.NETFramework,Version=v8.0) 2024-02-15T13:09:03.3574520Z - net80-android34.0 (.NETFramework,Version=v8.0,Profile=android34.0) 2024-02-15T13:09:03.3574800Z - net80-ios17.0 (.NETFramework,Version=v8.0,Profile=ios17.0) 2024-02-15T13:09:03.3575100Z - net80-maccatalyst17.0 (.NETFramework,Version=v8.0,Profile=maccatalyst17.0) 2024-02-15T13:09:03.3575390Z - net80-tizen8.0 (.NETFramework,Version=v8.0,Profile=tizen8.0) 2024-02-15T13:09:03.3575680Z - net80-windows10.0.19041 (.NETFramework,Version=v8.0,Profile=windows10.0.19041) 2024-02-15T13:09:03.3576200Z NU1202: Package Microsoft.Extensions.DependencyInjection 8.0.0 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package Microsoft.Extensions.DependencyInjection 8.0.0 supports: 2024-02-15T13:09:03.3576540Z - net462 (.NETFramework,Version=v4.6.2) 2024-02-15T13:09:03.3576770Z - net60 (.NETFramework,Version=v6.0) 2024-02-15T13:09:03.3576990Z - net70 (.NETFramework,Version=v7.0) 2024-02-15T13:09:03.3577220Z - net80 (.NETFramework,Version=v8.0) 2024-02-15T13:09:03.3577450Z - netstandard2.0 (.NETStandard,Version=v2.0) 2024-02-15T13:09:03.3577680Z - netstandard2.1 (.NETStandard,Version=v2.1) 2024-02-15T13:09:03.3578110Z NU1202: Package CommunityToolkit.Mvvm 8.2.2 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package CommunityToolkit.Mvvm 8.2.2 supports: 2024-02-15T13:09:03.3578410Z - net60 (.NETFramework,Version=v6.0) 2024-02-15T13:09:03.3578660Z - netstandard2.0 (.NETStandard,Version=v2.0) 2024-02-15T13:09:03.3578890Z - netstandard2.1 (.NETStandard,Version=v2.1) 2024-02-15T13:09:03.3579340Z NU1202: Package Microsoft.Extensions.Logging 8.0.0 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package Microsoft.Extensions.Logging 8.0.0 supports: 2024-02-15T13:09:03.3580360Z - net462 (.NETFramework,Version=v4.6.2) 2024-02-15T13:09:03.3580600Z - net60 (.NETFramework,Version=v6.0) 2024-02-15T13:09:03.3580820Z - net70 (.NETFramework,Version=v7.0) 2024-02-15T13:09:03.3581030Z - net80 (.NETFramework,Version=v8.0) 2024-02-15T13:09:03.3581270Z - netstandard2.0 (.NETStandard,Version=v2.0) 2024-02-15T13:09:03.3581500Z - netstandard2.1 (.NETStandard,Version=v2.1) 2024-02-15T13:09:03.3581970Z NU1202: Package Microsoft.Maui.Controls.Compatibility 8.0.6 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package Microsoft.Maui.Controls.Compatibility 8.0.6 supports: 2024-02-15T13:09:03.3582300Z - net80 (.NETFramework,Version=v8.0) 2024-02-15T13:09:03.3582570Z - net80-android34.0 (.NETFramework,Version=v8.0,Profile=android34.0) 2024-02-15T13:09:03.3582860Z - net80-ios17.0 (.NETFramework,Version=v8.0,Profile=ios17.0) 2024-02-15T13:09:03.3583150Z - net80-maccatalyst17.0 (.NETFramework,Version=v8.0,Profile=maccatalyst17.0) 2024-02-15T13:09:03.3583450Z - net80-tizen8.0 (.NETFramework,Version=v8.0,Profile=tizen8.0) 2024-02-15T13:09:03.3583740Z - net80-windows10.0.19041 (.NETFramework,Version=v8.0,Profile=windows10.0.19041) 2024-02-15T13:09:03.3584070Z - net80-windows10.0.20348 (.NETFramework,Version=v8.0,Profile=windows10.0.20348) 2024-02-15T13:09:03.3584330Z - netstandard2.0 (.NETStandard,Version=v2.0) 2024-02-15T13:09:03.3584550Z - netstandard2.1 (.NETStandard,Version=v2.1) 2024-02-15T13:09:03.3584990Z NU1202: Package Microsoft.Maui.Essentials 8.0.6 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package Microsoft.Maui.Essentials 8.0.6 supports: 2024-02-15T13:09:03.3585590Z - net70 (.NETFramework,Version=v7.0) 2024-02-15T13:09:03.3586020Z - net70-android33.0 (.NETFramework,Version=v7.0,Profile=android33.0) 2024-02-15T13:09:03.3586300Z - net70-ios16.1 (.NETFramework,Version=v7.0,Profile=ios16.1) 2024-02-15T13:09:03.3586620Z - net70-maccatalyst16.1 (.NETFramework,Version=v7.0,Profile=maccatalyst16.1) 2024-02-15T13:09:03.3586900Z - net70-tizen7.0 (.NETFramework,Version=v7.0,Profile=tizen7.0) 2024-02-15T13:09:03.3587190Z - net70-windows10.0.19041 (.NETFramework,Version=v7.0,Profile=windows10.0.19041) 2024-02-15T13:09:03.3587520Z - net70-windows10.0.20348 (.NETFramework,Version=v7.0,Profile=windows10.0.20348) 2024-02-15T13:09:03.3587760Z - net80 (.NETFramework,Version=v8.0) 2024-02-15T13:09:03.3588040Z - net80-android34.0 (.NETFramework,Version=v8.0,Profile=android34.0) 2024-02-15T13:09:03.3588310Z - net80-ios17.0 (.NETFramework,Version=v8.0,Profile=ios17.0) 2024-02-15T13:09:03.3588610Z - net80-maccatalyst17.0 (.NETFramework,Version=v8.0,Profile=maccatalyst17.0) 2024-02-15T13:09:03.3588900Z - net80-tizen8.0 (.NETFramework,Version=v8.0,Profile=tizen8.0) 2024-02-15T13:09:03.3589190Z - net80-windows10.0.19041 (.NETFramework,Version=v8.0,Profile=windows10.0.19041) 2024-02-15T13:09:03.3589530Z - net80-windows10.0.20348 (.NETFramework,Version=v8.0,Profile=windows10.0.20348) 2024-02-15T13:09:03.3589780Z - netstandard2.0 (.NETStandard,Version=v2.0) 2024-02-15T13:09:03.3590030Z - netstandard2.1 (.NETStandard,Version=v2.1) 2024-02-15T13:09:03.3590420Z NU1202: Package System.Reactive 6.0.0 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package System.Reactive 6.0.0 supports: 2024-02-15T13:09:03.3590730Z - net472 (.NETFramework,Version=v4.7.2) 2024-02-15T13:09:03.3590950Z - net60 (.NETFramework,Version=v6.0) 2024-02-15T13:09:03.3591230Z - net60-windows10.0.19041 (.NETFramework,Version=v6.0,Profile=windows10.0.19041) 2024-02-15T13:09:03.3591500Z - netstandard2.0 (.NETStandard,Version=v2.0) 2024-02-15T13:09:03.3591740Z - uap10.0.18362 (UAP,Version=v10.0.18362) 2024-02-15T13:09:03.3592360Z NU1202: Package SyrianBallaS.AutoMapper.Extensions.Microsoft.DependencyInjection.Signed 3.2.0 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package SyrianBallaS.AutoMapper.Extensions.Microsoft.DependencyInjection.Signed 3.2.0 supports: netstandard2.0 (.NETStandard,Version=v2.0) 2024-02-15T13:09:03.3593470Z NU1202: Package AutoMapper.Extensions.Microsoft.DependencyInjection 12.0.1 is not compatible with net80-ios (.NETFramework,Version=v8.0,Profile=ios). Package AutoMapper.Extensions.Microsoft.DependencyInjection 12.0.1 supports: netstandard2.1 (.NETStandard,Version=v2.1) 2024-02-15T13:09:03.3594030Z NU1202: Package CommunityToolkit.Maui 7.0.1 is not compatible with net80-ios (.NETFramework,Version=v8.0,Profile=ios). Package CommunityToolkit.Maui 7.0.1 supports: 2024-02-15T13:09:03.3594330Z - net80 (.NETFramework,Version=v8.0) 2024-02-15T13:09:03.3594610Z - net80-android34.0 (.NETFramework,Version=v8.0,Profile=android34.0) 2024-02-15T13:09:03.3594890Z - net80-ios17.0 (.NETFramework,Version=v8.0,Profile=ios17.0) 2024-02-15T13:09:03.3595190Z - net80-maccatalyst17.0 (.NETFramework,Version=v8.0,Profile=maccatalyst17.0) 2024-02-15T13:09:03.3595480Z - net80-tizen8.0 (.NETFramework,Version=v8.0,Profile=tizen8.0) 2024-02-15T13:09:03.3595770Z - net80-windows10.0.19041 (.NETFramework,Version=v8.0,Profile=windows10.0.19041) 2024-02-15T13:09:03.3596270Z NU1202: Package Microsoft.Extensions.DependencyInjection 8.0.0 is not compatible with net80-ios (.NETFramework,Version=v8.0,Profile=ios). Package Microsoft.Extensions.DependencyInjection 8.0.0 supports: 2024-02-15T13:09:03.3596590Z - net462 (.NETFramework,Version=v4.6.2) 2024-02-15T13:09:03.3596820Z - net60 (.NETFramework,Version=v6.0) 2024-02-15T13:09:03.3597040Z - net70 (.NETFramework,Version=v7.0) 2024-02-15T13:09:03.3597270Z - net80 (.NETFramework,Version=v8.0) 2024-02-15T13:09:03.3597500Z - netstandard2.0 (.NETStandard,Version=v2.0) 2024-02-15T13:09:03.3598000Z - netstandard2.1 (.NETStandard,Version=v2.1) 2024-02-15T13:09:03.3598420Z NU1202: Package CommunityToolkit.Mvvm 8.2.2 is not compatible with net80-ios (.NETFramework,Version=v8.0,Profile=ios). Package CommunityToolkit.Mvvm 8.2.2 supports: 2024-02-15T13:09:03.3598720Z - net60 (.NETFramework,Version=v6.0) 2024-02-15T13:09:03.3598970Z - netstandard2.0 (.NETStandard,Version=v2.0) 2024-02-15T13:09:03.3599200Z - netstandard2.1 (.NETStandard,Version=v2.1) 2024-02-15T13:09:03.3599630Z NU1202: Package Microsoft.Extensions.Logging 8.0.0 is not compatible with net80-ios (.NETFramework,Version=v8.0,Profile=ios). Package Microsoft.Extensions.Logging 8.0.0 supports: 2024-02-15T13:09:03.3599950Z - net462 (.NETFramework,Version=v4.6.2) 2024-02-15T13:09:03.3600170Z - net60 (.NETFramework,Version=v6.0) 2024-02-15T13:09:03.3600390Z - net70 (.NETFramework,Version=v7.0) 2024-02-15T13:09:03.3600600Z - net80 (.NETFramework,Version=v8.0) 2024-02-15T13:09:03.3600850Z - netstandard2.0 (.NETStandard,Version=v2.0) 2024-02-15T13:09:03.3601080Z - netstandard2.1 (.NETStandard,Version=v2.1) 2024-02-15T13:09:03.3601530Z NU1202: Package Microsoft.Maui.Controls.Compatibility 8.0.6 is not compatible with net80-ios (.NETFramework,Version=v8.0,Profile=ios). Package Microsoft.Maui.Controls.Compatibility 8.0.6 supports: 2024-02-15T13:09:03.3601850Z - net80 (.NETFramework,Version=v8.0) 2024-02-15T13:09:03.3602110Z - net80-android34.0 (.NETFramework,Version=v8.0,Profile=android34.0) 2024-02-15T13:09:03.3602400Z - net80-ios17.0 (.NETFramework,Version=v8.0,Profile=ios17.0) 2024-02-15T13:09:03.3602690Z - net80-maccatalyst17.0 (.NETFramework,Version=v8.0,Profile=maccatalyst17.0) 2024-02-15T13:09:03.3602990Z - net80-tizen8.0 (.NETFramework,Version=v8.0,Profile=tizen8.0) 2024-02-15T13:09:03.3603290Z - net80-windows10.0.19041 (.NETFramework,Version=v8.0,Profile=windows10.0.19041) 2024-02-15T13:09:03.3603610Z - net80-windows10.0.20348 (.NETFramework,Version=v8.0,Profile=windows10.0.20348) 2024-02-15T13:09:03.3603870Z - netstandard2.0 (.NETStandard,Version=v2.0) 2024-02-15T13:09:03.3604100Z - netstandard2.1 (.NETStandard,Version=v2.1) 2024-02-15T13:09:03.3604520Z NU1202: Package Microsoft.Maui.Essentials 8.0.6 is not compatible with net80-ios (.NETFramework,Version=v8.0,Profile=ios). Package Microsoft.Maui.Essentials 8.0.6 supports: 2024-02-15T13:09:03.3605170Z - net70 (.NETFramework,Version=v7.0) 2024-02-15T13:09:03.3605450Z - net70-android33.0 (.NETFramework,Version=v7.0,Profile=android33.0) 2024-02-15T13:09:03.3605720Z - net70-ios16.1 (.NETFramework,Version=v7.0,Profile=ios16.1) 2024-02-15T13:09:03.3606180Z - net70-maccatalyst16.1 (.NETFramework,Version=v7.0,Profile=maccatalyst16.1) 2024-02-15T13:09:03.3606470Z - net70-tizen7.0 (.NETFramework,Version=v7.0,Profile=tizen7.0) 2024-02-15T13:09:03.3607050Z - net70-windows10.0.19041 (.NETFramework,Version=v7.0,Profile=windows10.0.19041) 2024-02-15T13:09:03.3607660Z - net70-windows10.0.20348 (.NETFramework,Version=v7.0,Profile=windows10.0.20348) 2024-02-15T13:09:03.3607940Z - net80 (.NETFramework,Version=v8.0) 2024-02-15T13:09:03.3609060Z - net80-android34.0 (.NETFramework,Version=v8.0,Profile=android34.0) 2024-02-15T13:09:03.3609360Z - net80-ios17.0 (.NETFramework,Version=v8.0,Profile=ios17.0) 2024-02-15T13:09:03.3609730Z - net80-maccatalyst17.0 (.NETFramework,Version=v8.0,Profile=maccatalyst17.0) 2024-02-15T13:09:03.3610180Z - net80-tizen8.0 (.NETFramework,Version=v8.0,Profile=tizen8.0) 2024-02-15T13:09:03.3610490Z - net80-windows10.0.19041 (.NETFramework,Version=v8.0,Profile=windows10.0.19041) 2024-02-15T13:09:03.3610820Z - net80-windows10.0.20348 (.NETFramework,Version=v8.0,Profile=windows10.0.20348) 2024-02-15T13:09:03.3611080Z - netstandard2.0 (.NETStandard,Version=v2.0) 2024-02-15T13:09:03.3611330Z - netstandard2.1 (.NETStandard,Version=v2.1) 2024-02-15T13:09:03.3611730Z NU1202: Package System.Reactive 6.0.0 is not compatible with net80-ios (.NETFramework,Version=v8.0,Profile=ios). Package System.Reactive 6.0.0 supports: 2024-02-15T13:09:03.3612450Z - net472 (.NETFramework,Version=v4.7.2) 2024-02-15T13:09:03.3612680Z - net60 (.NETFramework,Version=v6.0) 2024-02-15T13:09:03.3612970Z - net60-windows10.0.19041 (.NETFramework,Version=v6.0,Profile=windows10.0.19041) 2024-02-15T13:09:03.3613260Z - netstandard2.0 (.NETStandard,Version=v2.0) 2024-02-15T13:09:03.3613490Z - uap10.0.18362 (UAP,Version=v10.0.18362) 2024-02-15T13:09:03.3614110Z NU1202: Package SyrianBallaS.AutoMapper.Extensions.Microsoft.DependencyInjection.Signed 3.2.0 is not compatible with net80-ios (.NETFramework,Version=v8.0,Profile=ios). Package SyrianBallaS.AutoMapper.Extensions.Microsoft.DependencyInjection.Signed 3.2.0 supports: netstandard2.0 (.NETStandard,Version=v2.0) 2024-02-15T13:09:03.3614850Z NU1202: Package AutoMapper.Extensions.Microsoft.DependencyInjection 12.0.1 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package AutoMapper.Extensions.Microsoft.DependencyInjection 12.0.1 supports: netstandard2.1 (.NETStandard,Version=v2.1) 2024-02-15T13:09:03.3615610Z NU1202: Package Microsoft.Maui.Essentials 8.0.6 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package Microsoft.Maui.Essentials 8.0.6 supports: 2024-02-15T13:09:03.3615950Z - net70 (.NETFramework,Version=v7.0) 2024-02-15T13:09:03.3616230Z - net70-android33.0 (.NETFramework,Version=v7.0,Profile=android33.0) 2024-02-15T13:09:03.3616510Z - net70-ios16.1 (.NETFramework,Version=v7.0,Profile=ios16.1) 2024-02-15T13:09:03.3616820Z - net70-maccatalyst16.1 (.NETFramework,Version=v7.0,Profile=maccatalyst16.1) 2024-02-15T13:09:03.3617110Z - net70-tizen7.0 (.NETFramework,Version=v7.0,Profile=tizen7.0) 2024-02-15T13:09:03.3617410Z - net70-windows10.0.19041 (.NETFramework,Version=v7.0,Profile=windows10.0.19041) 2024-02-15T13:09:03.3618500Z - net70-windows10.0.20348 (.NETFramework,Version=v7.0,Profile=windows10.0.20348) 2024-02-15T13:09:03.3618840Z - net80 (.NETFramework,Version=v8.0) 2024-02-15T13:09:03.3619150Z - net80-android34.0 (.NETFramework,Version=v8.0,Profile=android34.0) 2024-02-15T13:09:03.3619420Z - net80-ios17.0 (.NETFramework,Version=v8.0,Profile=ios17.0) 2024-02-15T13:09:03.3619730Z - net80-maccatalyst17.0 (.NETFramework,Version=v8.0,Profile=maccatalyst17.0) 2024-02-15T13:09:03.3620450Z - net80-tizen8.0 (.NETFramework,Version=v8.0,Profile=tizen8.0) 2024-02-15T13:09:03.3620750Z - net80-windows10.0.19041 (.NETFramework,Version=v8.0,Profile=windows10.0.19041) 2024-02-15T13:09:03.3621090Z - net80-windows10.0.20348 (.NETFramework,Version=v8.0,Profile=windows10.0.20348) 2024-02-15T13:09:03.3621340Z - netstandard2.0 (.NETStandard,Version=v2.0) 2024-02-15T13:09:03.3621590Z - netstandard2.1 (.NETStandard,Version=v2.1) 2024-02-15T13:09:03.3622680Z NU1202: Package SyrianBallaS.AutoMapper.Extensions.Microsoft.DependencyInjection.Signed 3.2.0 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package SyrianBallaS.AutoMapper.Extensions.Microsoft.DependencyInjection.Signed 3.2.0 supports: netstandard2.0 (.NETStandard,Version=v2.0) 2024-02-15T13:09:03.3623490Z NU1202: Package System.Reactive 6.0.0 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package System.Reactive 6.0.0 supports: 2024-02-15T13:09:03.3623800Z - net472 (.NETFramework,Version=v4.7.2) 2024-02-15T13:09:03.3624050Z - net60 (.NETFramework,Version=v6.0) 2024-02-15T13:09:03.3624330Z - net60-windows10.0.19041 (.NETFramework,Version=v6.0,Profile=windows10.0.19041) 2024-02-15T13:09:03.3624590Z - netstandard2.0 (.NETStandard,Version=v2.0) 2024-02-15T13:09:03.3624850Z - uap10.0.18362 (UAP,Version=v10.0.18362) 2024-02-15T13:09:03.3625280Z NU1202: Package Microsoft.Extensions.Logging 8.0.0 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package Microsoft.Extensions.Logging 8.0.0 supports: 2024-02-15T13:09:03.3625610Z - net462 (.NETFramework,Version=v4.6.2) 2024-02-15T13:09:03.3625840Z - net60 (.NETFramework,Version=v6.0) 2024-02-15T13:09:03.3626580Z - net70 (.NETFramework,Version=v7.0) 2024-02-15T13:09:03.3626810Z - net80 (.NETFramework,Version=v8.0) 2024-02-15T13:09:03.3627040Z - netstandard2.0 (.NETStandard,Version=v2.0) 2024-02-15T13:09:03.3627310Z - netstandard2.1 (.NETStandard,Version=v2.1) 2024-02-15T13:09:03.3627770Z NU1202: Package Microsoft.Maui.Controls.Compatibility 8.0.6 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package Microsoft.Maui.Controls.Compatibility 8.0.6 supports: 2024-02-15T13:09:03.3628110Z - net80 (.NETFramework,Version=v8.0) 2024-02-15T13:09:03.3628380Z - net80-android34.0 (.NETFramework,Version=v8.0,Profile=android34.0) 2024-02-15T13:09:03.3628660Z - net80-ios17.0 (.NETFramework,Version=v8.0,Profile=ios17.0) 2024-02-15T13:09:03.3628960Z - net80-maccatalyst17.0 (.NETFramework,Version=v8.0,Profile=maccatalyst17.0) 2024-02-15T13:09:03.3629250Z - net80-tizen8.0 (.NETFramework,Version=v8.0,Profile=tizen8.0) 2024-02-15T13:09:03.3629570Z - net80-windows10.0.19041 (.NETFramework,Version=v8.0,Profile=windows10.0.19041) 2024-02-15T13:09:03.3629890Z - net80-windows10.0.20348 (.NETFramework,Version=v8.0,Profile=windows10.0.20348) 2024-02-15T13:09:03.3630170Z - netstandard2.0 (.NETStandard,Version=v2.0) 2024-02-15T13:09:03.3630410Z - netstandard2.1 (.NETStandard,Version=v2.1) 2024-02-15T13:09:03.3630820Z NU1202: Package Newtonsoft.Json 13.0.3 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package Newtonsoft.Json 13.0.3 supports: 2024-02-15T13:09:03.3631130Z - net20 (.NETFramework,Version=v2.0) 2024-02-15T13:09:03.3631350Z - net35 (.NETFramework,Version=v3.5) 2024-02-15T13:09:03.3631580Z - net40 (.NETFramework,Version=v4.0) 2024-02-15T13:09:03.3631800Z - net45 (.NETFramework,Version=v4.5) 2024-02-15T13:09:03.3632040Z - net60 (.NETFramework,Version=v6.0) 2024-02-15T13:09:03.3632270Z - netstandard1.0 (.NETStandard,Version=v1.0) 2024-02-15T13:09:03.3632500Z - netstandard1.3 (.NETStandard,Version=v1.3) 2024-02-15T13:09:03.3632770Z - netstandard2.0 (.NETStandard,Version=v2.0) 2024-02-15T13:09:03.3633180Z NU1202: Package CommunityToolkit.Maui 7.0.1 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package CommunityToolkit.Maui 7.0.1 supports: 2024-02-15T13:09:03.3633930Z - net80 (.NETFramework,Version=v8.0) 2024-02-15T13:09:03.3634710Z - net80-android34.0 (.NETFramework,Version=v8.0,Profile=android34.0) 2024-02-15T13:09:03.3635050Z - net80-ios17.0 (.NETFramework,Version=v8.0,Profile=ios17.0) 2024-02-15T13:09:03.3635350Z - net80-maccatalyst17.0 (.NETFramework,Version=v8.0,Profile=maccatalyst17.0) 2024-02-15T13:09:03.3635630Z - net80-tizen8.0 (.NETFramework,Version=v8.0,Profile=tizen8.0) 2024-02-15T13:09:03.3635950Z - net80-windows10.0.19041 (.NETFramework,Version=v8.0,Profile=windows10.0.19041) 2024-02-15T13:09:03.3639190Z NU1202: Package Microsoft.Extensions.DependencyInjection 8.0.0 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package Microsoft.Extensions.DependencyInjection 8.0.0 supports: 2024-02-15T13:09:03.3639730Z - net462 (.NETFramework,Version=v4.6.2) 2024-02-15T13:09:03.3640000Z - net60 (.NETFramework,Version=v6.0) 2024-02-15T13:09:03.3640300Z - net70 (.NETFramework,Version=v7.0) 2024-02-15T13:09:03.3642870Z - net80 (.NETFramework,Version=v8.0) 2024-02-15T13:09:03.3643210Z - netstandard2.0 (.NETStandard,Version=v2.0) 2024-02-15T13:09:03.3644330Z - netstandard2.1 (.NETStandard,Version=v2.1)` ### Reproduction Steps 1 - We have project ready with Maui dot net 8.0 and trying to create CICD pipeline. 2 - We have created a yaml file with macos agent to build this app using nuget packages from feed like - nuget.urg,telerik, and azure artifacts feeds. 3 - we have also added a task to download and install dependency workloads for android and IOS. 4 - we are failing at nuget restore task as mentioned in above with lot of packages are not compatible with net8.0-android and net8.0 IOS. ### Expected behavior It should restore without any error ### Actual behavior getting compatibility issue like `2024-02-15T13:09:03.3581970Z NU1202: Package Microsoft.Maui.Controls.Compatibility 8.0.6 is not compatible with net80-android (.NETFramework,Version=v8.0,Profile=android). Package Microsoft.Maui.Controls.Compatibility 8.0.6 supports:` ### Regression? _No response_ ### Known Workarounds .net maui 8 workload ### Configuration Version : .net 8 workload OS : mac os latest Architecture : x64 ### Other information we are able run locally project and also restoring without any errors, problem is only having while creating pipeline yaml file restoring nuget packages compatibility issue is getting
Author: jitendrajadav
Assignees: -
Labels: `os-android`, `untriaged`, `needs-area-label`
Milestone: -
steveisok commented 9 months ago

/cc @vitek-karas

@akoeplinger looks like the mono version of nuget.exe is being used. That's not going to work is it?

akoeplinger commented 9 months ago

Correct, the legacy version of mono/msbuild/nuget doesn't know about these new TFMs.

@jitendrajadav instead of using the NuGetCommand task use the NuGetAuthenticate task to authenticate to feeds.

You then also don't need to do an explicit restore since that will happen as part of dotnet build.

ghost commented 9 months ago

This issue has been marked needs-author-action and may be missing some important information.

jitendrajadav commented 9 months ago

@akoeplinger, @steveisok
As we are not using nuget feed from other organisation we are using our internal Azure artifacts, as you have suggested mono version of Nuget.exe won't work so I have pointed out to use .NET Nuget location(I have added a task to find executable command location then pointed to Installed SDK dotnet location) and this restored nugets.

Thank you for quick turn around really appreciate!!