"no-cache" option for dotnet tool update
See original GitHub issueSteps 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:
- Created 5 years ago
- Reactions:3
- Comments:10
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.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 dodotnet pack
.