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.

How do I update tool packages?

See original GitHub issue

Cake calls nuget install with the -ExcludeVersion switch. Because of this, NuGet doesn’t know which version is currently installed, so if there’s any version of the package currently installed, NuGet assumes that it’s up to date, even though it’s not.

For instance, if I have this in my tools/packages.config:

<package id="NUnit.ConsoleRunner" version="3.2.0" />

and the package is already installed, when I update the packages.config to this:

<package id="NUnit.ConsoleRunner" version="3.4.1" />

NuGet doesn’t install the new version, because it assumes it’s already there.

What is the proper way to force a packages to be update (besides removing the packages already in tools)? Was there a specific reason to use -ExcludeVersion?

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
thomaslevesquecommented, Jul 18, 2016

@gep13 great, thanks 😄

0reactions
gep13commented, Jul 18, 2016

@thomaslevesque I have just merged @mholo65’s suggestion into this repository, and I am away to make the same change in the default bootstrapper as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reinstalling and Updating NuGet Packages
Being mindful of the Considerations described below, you can easily reinstall any package using the Update-Package command in the Visual Studio ...
Read more >
Updating packages downloaded from the registry
Updating local packages ; Navigate to the root directory of your project and ensure it contains a package.json file: cd /path/to/project ; In...
Read more >
Update the IDE and SDK tools | Android Studio
To update an item or install a new one, select the checkbox. To uninstall a package, click to clear the checkbox. Pending updates...
Read more >
How to Update All Python Packages
Click to update all Python packages for Windows and Linux with pip or pipenv.
Read more >
Update Packages with the Offline Tool
On a client computer that contains the latest updates, navigate to the folder C:\Program Files (x86)\BeyondTrust\Updater\Service. · Double-click the OfflineTool.
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