Provide a better error message when adding a DotNetCliToolReference fails #4256

Open
balachir opened this Issue Jan 11, 2017 · 5 comments

Comments

Projects
None yet
7 participants
@balachir
  1. File -> New -> Project -> .NET Core -> Console App
  2. Project -> Manage NuGet packages...
  3. Attempt to install a "CLI tool" package, e.g. Microsoft.DotNet.Watcher.Tools 1.1.0-preview4-final

ACTUAL
Fails with error:
Package 'Microsoft.DotNet.Watcher.Tools 1.1.0-preview4-final' has a package type 'DotnetCliTool' that is not supported by project 'ConsoleApp1'.

EXPECTED
Better error message

@MattGertz

This comment has been minimized.

Show comment
Hide comment
@MattGertz

MattGertz Jan 25, 2017

JoC says to push this to next.

JoC says to push this to next.

@rrelyea rrelyea modified the milestones: 4.0.1, 4.0 RTM Jan 25, 2017

@rrelyea rrelyea added XPLAT and removed Shiproom Required labels Feb 9, 2017

@nil4 nil4 referenced this issue in nil4/dotnet-transform-xdt Sep 27, 2017

Closed

Package type 'DotnetCliTool' is not supported by project #16

@anangaur

This comment has been minimized.

Show comment
Hide comment
@anangaur

anangaur Oct 2, 2017

Member

@emgarten , Have we made the error msg better now? This has been a known issue since 15.3 RTW.

Member

anangaur commented Oct 2, 2017

@emgarten , Have we made the error msg better now? This has been a known issue since 15.3 RTW.

@emgarten

This comment has been minimized.

Show comment
Hide comment
@emgarten

emgarten Oct 2, 2017

Contributor

@anangaur there haven't been any changes for tools yet

Contributor

emgarten commented Oct 2, 2017

@anangaur there haven't been any changes for tools yet

@anangaur

This comment has been minimized.

Show comment
Hide comment
@anangaur

anangaur Oct 2, 2017

Member

Thanks for the quick update!

Member

anangaur commented Oct 2, 2017

Thanks for the quick update!

@karann-msft karann-msft modified the milestones: Future-0, Backlog Oct 9, 2017

@robertmuehsig

This comment has been minimized.

Show comment
Hide comment
@robertmuehsig

robertmuehsig Oct 17, 2017

Besides the error message: Why can't NuGet itself not insert the needed DotnetCliTool reference inside the csproj?
We recently created a dotnet cli tool and I was suprised that the handling is different from a normal package.

Besides the error message: Why can't NuGet itself not insert the needed DotnetCliTool reference inside the csproj?
We recently created a dotnet cli tool and I was suprised that the handling is different from a normal package.

@robertmuehsig robertmuehsig referenced this issue in ElectronNET/Electron.NET Oct 17, 2017

Closed

DotnetCliTool installation #3

@emgarten emgarten removed their assignment Feb 14, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment