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.

Package coverlet.console 3.0.0 is not compatible with netcoreapp3.1

See original GitHub issue

I can’t install coverlet.console 3.0.0 for mcr.microsoft.com/dotnet/core/sdk:3.1 image:

error NU1202: Package coverlet.console 3.0.0 is not compatible with netcoreapp3.1 (.NETCoreApp,Version=v3.1) / any. Package coverlet.console 3.0.0 supports: net5.0 (.NETCoreApp,Version=v5.0) / any

Is it expected behavior for a new release?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:12

github_iconTop GitHub Comments

7reactions
MarcoRossignolicommented, Jan 11, 2021

Yep we moved .NET Tool to last version. We’ll move .NET tool to last version every time we can. .NET 5.0 is not a LTS(expires in February, 2022) but we’ll move to next one on next releases https://github.com/dotnet/core/blob/master/releases.md

1reaction
SabriArslancommented, Apr 15, 2021

Hello @MarcoRossignoli

I’m also having same issue that I can not use coverlet.console v3 anymore within .net core 3.1 SDK docker image.

What I understand is I can not install coverlet.console while using mcr.microsoft.com/dotnet/core/sdk:3.1 docker image in the pipeline, and in order to install I need to install .net 5 runtime while running my pipeline inside mcr.microsoft.com/dotnet/core/sdk:3.1, is this correct ?

If that the case then I need to upgrade all projects that uses coverlet.console otherwise it doesn’t make sense install .net 5 runtime while using the 3.1 SDK image.

To give more details, we are using Bitbucket pipelines and my pipeline looks like below

build-and-test:
  name: Build and Test
  image: mcr.microsoft.com/dotnet/core/sdk:3.1
  caches:
    - dotnetcore
  services:
    - docker
  script:
    - export PATH="$PATH:/root/.dotnet/tools"
    - echo "Building the project"
    - apt-get update 
    - dotnet tool install --global coverlet.console
    - dotnet build
    - dotnet test --no-build --collect:"XPlat Code Coverage" --logger trx -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
    .....

As you can see installing .net 5 runtime doesn’t make sense into container runs with .net core 3.1 SDK.

Could you please consider creating a new coverlet.console V3 package that still supports .net core 3.1 ?

Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Package X is not compatible with netcoreapp3.1
First, clean nuget caches or delete all files under C:\Users\xxx(current user)\.nuget\packages . Then, delete bin and obj folder.
Read more >
coverlet.console 6.0.0
Coverlet is a cross platform code coverage tool for .NET, with support for line, branch and method coverage. Product, Versions Compatible and additional ......
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). Tobias Zimmergren.
Read more >
Error NU1202. Package is not compatible with ...
I have .NET 6.0.1 installed on the computer, as well 3.1. I tried to create global.json with "sdk": { "version" ...
Read more >
NuGet Error NU1100
This is a generic issue for types that are not packages or projects. Solution 1. Open the project file and examine the list...
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