Skip to content

Reinstall NuGet-packages

November 16, 2016

When you, for example, change the target framework for your Visual Studio project/projects you may need to reinstall your NuGet-packages.

Links:

Examples:

  • Update-Package -Reinstall (reinstalls all packages in the solution)
  • Update-Package -Reinstall -Project Company.Function (or -ProjectName, reinstalls all packages in the specified project)
  • Update-Package -Reinstall MyPackage (reinstalls the package “MyPackage” in the whole solution)

Some other parameters:

  • -IgnoreDependencies (skips updating any of the package’s dependencies)
  • -WhatIf (shows what would happen when running the command without actually performing the update)
Advertisements

From → .NET, NuGet, Visual Studio

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: