Closed jitendrajadav closed 9 months ago
Tagging subscribers to 'arch-android': @steveisok, @akoeplinger See info in area-owners.md if you want to be subscribed.
Author: | jitendrajadav |
---|---|
Assignees: | - |
Labels: | `os-android`, `untriaged`, `needs-area-label` |
Milestone: | - |
/cc @vitek-karas
@akoeplinger looks like the mono version of nuget.exe is being used. That's not going to work is it?
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
.
This issue has been marked needs-author-action
and may be missing some important information.
@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!!
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
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