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.

"no-cache" option for dotnet tool update

See original GitHub issue

Steps to reproduce

I created a tool which I uploaded to a private nuget server. I did an install, and then created an update (0.0.2).

Expected behavior

dotnet tool update updates to 0.0.2

Actual behavior

However, once I posted this to the nuget server, I could not update it through the dotnet tool update, it still gave me 0.0.1. I am sure 0.0.2 was visible as when I did check it through Visual Studio the nuget installer gave me 0.0.2. But through the dotnet tool update it sill gave me 0.0.1. An half hour later, I was able to get 0.0.2.

So question is, is there a caching mechanism into the dotnet tool verb? And also, why not use the nuget installed sources for resolving, caching etc? Now we have to give --add-source for example …

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:3
  • Comments:10

github_iconTop GitHub Comments

4reactions
NickLydoncommented, Mar 5, 2020

The --no-cache flag doesn’t seem to do anything for me when running dotnet tool install. I’m developing a tool locally, and it always adds the package to C:\Users\n.lydon.nuget\packages. I need to delete it from the cache every time I make changes and want to re-install.

0reactions
SamJ26commented, Nov 30, 2021

dotnet tool install --no-cache does not work for me and it still uses cached .dlls. The only workaround when testing new dotnet tools locally is changing versions every time I do dotnet pack.

Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet tool update command - .NET CLI
The dotnet tool update command provides a way for you to update .NET tools on your machine to the latest stable version of...
Read more >
dotnet tool update not getting latest version in nuget
1 Answer 1 ... Adding the --no-cache option forces the update. ... I had this issue with GitHub Nuget feed. Somehow the latest...
Read more >
dotnet-sql-cache 7.0.10
Version Downloads Last updated 8.0.0‑preview.7.23375.9 40 11 days ago 8.0.0‑preview.6.23329.11 51 a month ago 8.0.0‑preview.5.23302.2 57 2 months ago
Read more >
Use CodeArtifact with the nuget or dotnet CLI
You can use CLI tools like nuget and dotnet to publish and consume ... the -NoCache option for nuget or the --no-cache option...
Read more >
dotnet-vs | A global tool for managing Visual Studio installations
Installing or updating (same command for both):. dotnet tool update -g dotnet-vs. To get the CI version: dotnet tool update -g dotnet-vs --no-cache...
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