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.

Is there an equivalent of DotNetCliToolReference that uses a solution-local project?

See original GitHub issue

Steps to reproduce

I have a solution that has many projects in it, one of which is a tool that I’d like to use with DotNetCliToolReference . Using DotNetCliToolReference to reference a tool in the same solution doesn’t seem to be supported.

Expected behavior

In the same way that ProjectReference can be used instead of PackageReference, I would have hoped that there was an equivalent feature for a tool.

Actual behavior

I’m forced to build a package for the tool first, place it in a package repository (folder) and then reference the package.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
KallDrexxcommented, Nov 20, 2017

@krwq The one issue I see with the local nuget method is that it’s hard to test new versions. For example, if I make one change to my tool code I have to increment the version or clear nuget cache every single time.

0reactions
TheRealPiotrPcommented, Jan 5, 2017

Let’s continue tracking this at NuGet/Home#2469

Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet core PackageReference vs DotNetCliToolReference
1 Answer 1 · At the moment adding DotNetCliToolReference items is only possibly by hand-editing the csproj file. · The logical difference is...
Read more >
EF Core tools reference (.NET CLI)
Reference guide for the Entity Framework Core .NET Core CLI tools.
Read more >
.NET Core Global Tools and Gotchas
No. A package cannot be both a project tool (dotnetclitoolreference) and a global tool. John Zabroski • 3 years ago.
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