AzurePipelines: Package prometheus-net.AspNetCore 6.0.0 is not compatible with net60
See original GitHub issueHey,
i still get this build error:
[error]The nuget command failed with exit code(1) and error(NU1202: Package prometheus-net.AspNetCore 6.0.0 is not compatible with net60 (.NETFramework,Version=v6.0). Package prometheus-net.AspNetCore 6.0.0 supports: netcoreapp3.1 (.NETCoreApp,Version=v3.1)
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Azure DevOps error message "Package is not compatible ...
My pipeline was working fine all this time until today. Suddenly I am getting this error message that the package is not compatible...
Read more >yaml - Azure DevOps Pipeline error "Package (...) is not ...
My project has two target frameworks: 3.1 and 6. While running the pipeline, it throws errors when restoring packages: ##[error]The nuget ...
Read more >Fixing issue related to Package is not compatible with ...
Fixing issue related to Package is not compatible with netcoreapp2.1, supports netstandard2.0, when using Azure DevOps (VSTS).
Read more >The specified version of Microsoft.NetCore.App or ...
I have upgraded my Web API from version netcoreapp3.1 to version net6.0. When I launch it from Visual studio as localhost, it will...
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
I solved this by upgrading nuget to >=6.0:
It sounds like this may be related to an old NuGet version? There are many .NET 6 projects using this library, so it seems unlikely that the library package is broken. However, if upgrading NuGet version does not help, please post a new issue with more details (e.g. example pipeline).