简体   繁体   中英

Can't install any NuGets in Visual Studio 2012

I am trying to install NuGets for multiple projects, and the most convenient way is through the console. I've tried installing the packages through both the console and the "Manage NuGet Packages" interface, but both give me the same error:

PM> Install-Package log4net
Install-Package : Could not load file or assembly 'TTVSAddinDotNet.resources.module' or one of its dependencies. The system cannot find the file specified.
At line:1 char:16
+ Install-Package <<<<  log4net
    + CategoryInfo          : NotSpecified: (:) [Install-Package],      FileNotFoundException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

I'm not exactly sure what is going wrong. This seems to be a problem on just one computer. I've tried this on another computer with almost the same set up and it has worked just fine. I can't find any solutions online to this problem. Any suggestions or solutions would be greatly appreciated.

As stated by @birryree, this was a problem with a broken add-on. Disable the said addon (apparantly TTVSAddinDotNet comes packaged with Test Track), and restart VS.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM