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.

AzurePipelines: Package prometheus-net.AspNetCore 6.0.0 is not compatible with net60

See original GitHub issue

Hey,

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:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
walwecommented, Sep 29, 2022

I solved this by upgrading nuget to >=6.0:

- task: NuGetToolInstaller@1
  inputs:
    versionSpec: 6.0
0reactions
sandersaarescommented, Jan 2, 2023

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).

Read more comments on GitHub >

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

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