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.

Using a tool package from a local feed doesn't work

See original GitHub issue

I’m building a .NET Core cli tool and I want to test it before uploading a package. Now unfortunately tools can’t be referenced from projects in the same solution (as was the case with dnx commands), so I built a package and I’m using a local feed to serve it.

The following is the error I get:

No executable found matching command "dotnet-[the path to the project that I'm testing the tool with]"

The expected command name should have been dotnet-[toolname] but the cli is looking for the name above instead. Everything works great if I use a previous version that I already uploaded to nuget.

So what is the best way to test tools locally?

Environment data

.NET Command Line Tools (1.0.0-preview1-002702)

Product Information: Version: 1.0.0-preview1-002702 Commit Sha: 6cde21225e

Runtime Environment: OS Name: Windows OS Version: 10.0.10586 OS Platform: Windows RID: win10-x64

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
BrainCrumbzcommented, Sep 7, 2016

This other issue in cli project says the same (still by @brthor, thanks): https://github.com/dotnet/cli/issues/3239#issuecomment-243959757

0reactions
mrahhalcommented, Sep 7, 2016

Ah sorry, the above reference is for another issue, I got them mixed up. Your link though is good, it appears there are discussions about it so we can hope.

Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet tool install have trouble installing when an private ...
This issue is not fixed as I can't install any global tool with SDK 2.2.104 and a private feed in the nuget.config. workaround:...
Read more >
nuget local feed stops working when package with two ...
nuget local feed stops working when package with two different versions is present. So far so good, package is located in folder x:\nuget\ ......
Read more >
Troubleshooting NuGet Package Restore in Visual Studio
In this case, run msbuild -t:restore followed by msbuild , or use dotnet build (which restores packages automatically).
Read more >
Unable to install dotnet tool from private nuget feed
I have a dotnet tool that is published as a Nuget package to a private feed. From a YAML pipeline I would like...
Read more >
How to Use NuGet Packages: The Ultimate Guide
In Visual Studio, go to Tools > Options and then select Package Sources under the NuGet Package Manager. Choose the Add icon (+),...
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