Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facing Issue while installing coverlet.Console #1714

Open
sudhach123 opened this issue Nov 28, 2024 · 1 comment
Open

Facing Issue while installing coverlet.Console #1714

sudhach123 opened this issue Nov 28, 2024 · 1 comment
Labels
as-designed Expected behaviour

Comments

@sudhach123
Copy link

Hi Everyone
We are facing issue while installing coverlet. Console package in our application.
Background:We are trying to consume the nightly build of Coverlet as we have been reported a few vulnerabilities, and we found that the reported path is not in our application, but rather in Coverlet.
Path for reference:/app/DotNetRestoreDirectory/coverlet.collector/6.0.2/build/netstandard2.0/coverlet.collector.deps.json

In the process, we are trying to install the Coverlet.Console package to consume the nightly build, but we are getting the error below, and it is not allowing us to install the package.

Error:Package 'coverlet.console 6.0.2' has a package type 'DotnetTool' that is not supported by project 'XXX'.

Error:NU1212:Invalid project-package combination for coverlet.console 6.0.2. DotnetToolReference project style can only contain references of the DotnetTool type .

Could you please help us on this.

@github-actions github-actions bot added the untriaged To be investigated label Nov 28, 2024
@MarcoRossignoli
Copy link
Collaborator

Error:Package 'coverlet.console 6.0.2' has a package type 'DotnetTool' that is not supported by project 'XXX'.

You cannot install the dotnet tool the only package you can install is the msbuild and the collector. the coverlet.console is meant to be used as .NET Tool as explained here https://github.com/coverlet-coverage/coverlet?tab=readme-ov-file#quick-start

@MarcoRossignoli MarcoRossignoli added as-designed Expected behaviour and removed untriaged To be investigated labels Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
as-designed Expected behaviour
Projects
None yet
Development

No branches or pull requests

2 participants