none
Unable to install any NuGet package in Visual Studio 2012 RRS feed

  • Question

  • I have Visual Studio 2012 Ultimate installed with the latest updates as of today. I have started getting an exception inside the NuGet Package Manager where I cannot install any package into a solution. I get this error even when trying to add the package to a brand new console application.

    Here is the error:

    PM> Install-Package EntityFramework -Verbose
    You are downloading EntityFramework from Microsoft, the license agreement to which is available at http://go.microsoft.com/fwlink/?LinkId=253898&clcid=0x409. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.
    Added file 'App.config.transform' to folder 'EntityFramework.5.0.0\Content'.
    Added file 'Web.config.transform' to folder 'EntityFramework.5.0.0\Content'.
    Added file 'EntityFramework.dll' to folder 'EntityFramework.5.0.0\lib\net40'.
    Added file 'EntityFramework.xml' to folder 'EntityFramework.5.0.0\lib\net40'.
    Added file 'EntityFramework.dll' to folder 'EntityFramework.5.0.0\lib\net45'.
    Added file 'EntityFramework.xml' to folder 'EntityFramework.5.0.0\lib\net45'.
    Added file 'about_EntityFramework.help.txt' to folder 'EntityFramework.5.0.0\tools'.
    Added file 'EntityFramework.PowerShell.dll' to folder 'EntityFramework.5.0.0\tools'.
    Added file 'EntityFramework.PowerShell.Utility.dll' to folder 'EntityFramework.5.0.0\tools'.
    Added file 'EntityFramework.PS3.psd1' to folder 'EntityFramework.5.0.0\tools'.
    Added file 'EntityFramework.psd1' to folder 'EntityFramework.5.0.0\tools'.
    Added file 'EntityFramework.psm1' to folder 'EntityFramework.5.0.0\tools'.
    Added file 'init.ps1' to folder 'EntityFramework.5.0.0\tools'.
    Added file 'install.ps1' to folder 'EntityFramework.5.0.0\tools'.
    Added file 'migrate.exe' to folder 'EntityFramework.5.0.0\tools'.
    Added file 'Redirect.config' to folder 'EntityFramework.5.0.0\tools'.
    Added file 'Redirect.VS11.config' to folder 'EntityFramework.5.0.0\tools'.
    Added file 'EntityFramework.5.0.0.nuspec' to folder 'EntityFramework.5.0.0'.
    Added file 'EntityFramework.5.0.0.nupkg' to folder 'EntityFramework.5.0.0'.
    Successfully installed 'EntityFramework 5.0.0'.
    Executing script file 'C:\Users\[MYACCT]\documents\visual studio 2012\Projects\ConsoleApplication3\packages\EntityFramework.5.0.0\tools\init.ps1'.
    Added file 'App.config'.
    Added file 'packages.config'.
    Added file 'packages.config' to project 'ConsoleApplication3'
    Added file 'App.config'.
    Removed reference 'EntityFramework.dll' from project 'ConsoleApplication3'
    Added file 'packages.config'.
    Removed file 'packages.config'
    Removed file 'EntityFramework.dll' to folder 'C:\Users\[MYACCT]\documents\visual studio 2012\Projects\ConsoleApplication3\packages\EntityFramework.5.0.0\lib\net40'.
    Removed file 'EntityFramework.xml' to folder 'C:\Users\[MYACCT]\documents\visual studio 2012\Projects\ConsoleApplication3\packages\EntityFramework.5.0.0\lib\net40'.
    Removed folder 'C:\Users\[MYACCT]\documents\visual studio 2012\Projects\ConsoleApplication3\packages\EntityFramework.5.0.0\lib\net40'.
    Removed file 'EntityFramework.dll' to folder 'C:\Users\[MYACCT]\documents\visual studio 2012\Projects\ConsoleApplication3\packages\EntityFramework.5.0.0\lib\net45'.
    Removed file 'EntityFramework.xml' to folder 'C:\Users\[MYACCT]\documents\visual studio 2012\Projects\ConsoleApplication3\packages\EntityFramework.5.0.0\lib\net45'.
    Removed folder 'C:\Users\[MYACCT]\documents\visual studio 2012\Projects\ConsoleApplication3\packages\EntityFramework.5.0.0\lib\net45'.
    Removed file 'App.config.transform' to folder 'C:\Users\[MYACCT]\documents\visual studio 2012\Projects\ConsoleApplication3\packages\EntityFramework.5.0.0\Content'.
    Removed file 'Web.config.transform' to folder 'C:\Users\[MYACCT]\documents\visual studio 2012\Projects\ConsoleApplication3\packages\EntityFramework.5.0.0\Content'.
    Removed folder 'C:\Users\[MYACCT]\documents\visual studio 2012\Projects\ConsoleApplication3\packages\EntityFramework.5.0.0\Content'.
    Removed file 'about_EntityFramework.help.txt' to folder 'C:\Users\[MYACCT]\documents\visual studio 2012\Projects\ConsoleApplication3\packages\EntityFramework.5.0.0\tools'.
    Removed file 'EntityFramework.PowerShell.dll' to folder 'C:\Users\[MYACCT]\documents\visual studio 2012\Projects\ConsoleApplication3\packages\EntityFramework.5.0.0\tools'.
    Removed file 'EntityFramework.PowerShell.Utility.dll' to folder 'C:\Users\[MYACCT]\documents\visual studio 2012\Projects\ConsoleApplication3\packages\EntityFramework.5.0.0\tools'.
    Removed file 'EntityFramework.PS3.psd1' to folder 'C:\Users\[MYACCT]\documents\visual studio 2012\Projects\ConsoleApplication3\packages\EntityFramework.5.0.0\tools'.
    Removed file 'EntityFramework.psd1' to folder 'C:\Users\[MYACCT]\documents\visual studio 2012\Projects\ConsoleApplication3\packages\EntityFramework.5.0.0\tools'.
    Removed file 'EntityFramework.psm1' to folder 'C:\Users\[MYACCT]\documents\visual studio 2012\Projects\ConsoleApplication3\packages\EntityFramework.5.0.0\tools'.
    Removed file 'init.ps1' to folder 'C:\Users\[MYACCT]\documents\visual studio 2012\Projects\ConsoleApplication3\packages\EntityFramework.5.0.0\tools'.
    Removed file 'install.ps1' to folder 'C:\Users\[MYACCT]\documents\visual studio 2012\Projects\ConsoleApplication3\packages\EntityFramework.5.0.0\tools'.
    Removed file 'migrate.exe' to folder 'C:\Users\[MYACCT]\documents\visual studio 2012\Projects\ConsoleApplication3\packages\EntityFramework.5.0.0\tools'.
    Removed file 'Redirect.config' to folder 'C:\Users\[MYACCT]\documents\visual studio 2012\Projects\ConsoleApplication3\packages\EntityFramework.5.0.0\tools'.
    Removed file 'Redirect.VS11.config' to folder 'C:\Users\[MYACCT]\documents\visual studio 2012\Projects\ConsoleApplication3\packages\EntityFramework.5.0.0\tools'.
    Removed folder 'C:\Users\[MYACCT]\documents\visual studio 2012\Projects\ConsoleApplication3\packages\EntityFramework.5.0.0\tools'.
    Removed folder 'C:\Users\[MYACCT]\documents\visual studio 2012\Projects\ConsoleApplication3\packages\EntityFramework.5.0.0\lib'.
    Removed file 'EntityFramework.5.0.0.nuspec' to folder 'C:\Users\[MYACCT]\documents\visual studio 2012\Projects\ConsoleApplication3\packages\EntityFramework.5.0.0'.
    Removed file 'EntityFramework.5.0.0.nupkg' to folder 'C:\Users\[MYACCT]\documents\visual studio 2012\Projects\ConsoleApplication3\packages\EntityFramework.5.0.0'.
    Removed folder 'C:\Users\[MYACCT]\documents\visual studio 2012\Projects\ConsoleApplication3\packages\EntityFramework.5.0.0'.
    Removed folder 'C:\Users\[MYACCT]\documents\visual studio 2012\Projects\ConsoleApplication3\packages'.
    Successfully uninstalled 'EntityFramework 5.0.0'.
    Install failed. Rolling back...
    Install-Package : Failed to add reference to 'EntityFramework'.
    At line:1 char:16
    + Install-Package <<<<  EntityFramework -Verbose
        + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
        + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
     

    Thursday, March 7, 2013 5:25 PM

All replies