none
How to reinstall NuGet packages installed using a different target framework?

    Question



  • After I ported an app from VS 2010 into VS 2013 (RC) and upgraded the .NET target from 4.0 to 4.5.1, I got this 
    warning:

    Some NuGet packages were installed using a target framework different from the current target framework and may need to be reinstalled. For more information, visit http://docs.nuget.org/docs/workflows/reinstalling-
    packages.  Packages affected: EntityFramework, Microsoft.Net.Http

    However, attempting to browse to that URL (http://docs.nuget/org/docs/workflows/reinstalling-packages)
    results in the less-than-satisfactory communique from the Interwebs gerbils: "Oops! Google Chrome could not find 
    docs.nuget"

    So what are the steps for reinstalling the 4.5 packages?

    Thursday, October 10, 2013 8:30 PM

Answers

All replies

  • Hi. In the package manager console run the following command:

    update-package -reinstall

    Friday, October 11, 2013 12:14 AM
  • I tried that - apparently AjaxControlToolkit was what nuget was choking on.

    It apparently removed all references to AjaxControl Toolkit from my project. Now I have to figure out how to fix whatever it did.

    This is as much fun as working with linux configuration files. 'Visual' in visual studio is a misnomer.

    Thursday, December 26, 2013 9:42 PM
  • Then I used Nuget to try to fix what it broke - install AjaxControlToolkit. It's trying to install v7.1213 which has Azurestorage and other Microsoft bloat loaded in with it (in hopes people are stupid enough to pay microsoft monthly fees for this crap).

    It's been adding crap like system.spatial(??)m Microsoft.Data.Odata, and other unwanted garbage for the last 5 minutes. All I wanted was AjaxControlToolKit.

    What crap.

    Well, I guess I  only lost about half a days' work. I'll pull back what I have in source control and ignore the Nuget errors from now on.

    Thursday, December 26, 2013 9:50 PM
  • Works for me. As for OP's statement:

    http://docs.nuget/org/docs/workflows/reinstalling-packages)
    results in the less-than-satisfactory communique from the Interwebs gerbils: "Oops! Google Chrome could not find 
    docs.nuget"

    Please note the domain you're trying to navigate to: docs.nuget/org should be docs.nuget.org.

    http://docs.nuget.org/docs/workflows/reinstalling-packages works for me too.

    Saturday, February 01, 2014 6:37 AM