Nuget新版本覆盖老版本后报错

最新版本1.8.30524.9000,老版本不记得是什么了。应该是上一个到两个版本吧,因为每次打卡VS,扩展都会提示NuGet有更新,但每次更新都没有办法成功,报版本为null。今天心血来潮的决定手动升级NuGet到新版本。

头脑一热,下载了个NuGet在没有卸载老版本的时候,直接安装了,结果,悲催了,每次启动VS的时候都报错:

未能正确加载 "Microsoft.VisualStudio.FSharp.LanguageService.FSharpPackage, FSharp.LanguageService, Version=4.0.0.0, Culture=neutral, PublickKeyToken=b03f5f7f11d50a3a"包。此问题可能是由配置更改或者安装另一个扩展导致的。可以在命令行中使用/log参数来运行应用程序,让后检查文件"C:\Documents and Settings\Administrator\Application Data\Microsoft\VisualStudio\10.0\ActivityLog.xml",获取详细信息。是否继续显示此错误信息?

看样子是上次我删除掉了F#的后遗症,但原来没有重装NuGet的时候没有这种问题。为了解决问题,重新安装了F#,并且重新安装了NuGet的最新版,启动VS终于不会弹框了。

之后,安装了F#的SP1,安装完毕之后,系统启动也无异常,但在/log模式下,有3个报错(这个在没有安装SP1的时候没有注意查看 =.=!)。

203 ERROR 无法加载一个或多个请求的类型。有关更多信息,请检索 LoaderExceptions 属性。
          D:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager\1.8.30524.9000\NuGet.TeamFoundationServer.dll
    Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost 2012/05/30 05:20:33.515
204 ERROR 未能加载文件或程序集“Microsoft.TeamFoundation.VersionControl.Client, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”或它的某一个依赖项。系统找不到指定的文件。
          D:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager\1.8.30524.9000\NuGet.TeamFoundationServer.dll
    Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost 2012/05/30 05:20:33.515
205 ERROR 未能加载文件或程序集“Microsoft.TeamFoundation.VersionControl.Client, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”或它的某一个依赖项。系统找不到指定的文件。
          D:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager\1.8.30524.9000\NuGet.TeamFoundationServer.dll
    Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost 2012/05/30 05:20:33.515

 但日志中记录加载NuGet是正常的:

Successfully loaded extension...
          D:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager\1.8.30524.9000\

Successfully loaded component assembly from cache
          D:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager\1.8.30524.9000\NuGetConsole.Host.PowerShellProvider.dll

这应该是Team Foundation Server的问题,这块没有涉及过,不清楚是什么情况,如果有哪位朋友知道,欢迎POST下。

最后进入VS2010内测试,功能正常。在不影响使用的前提下,结束。

Wednesday, May 30, 2012 | .NET技术 其他技术

文章评论

No comments posted yet.

发表评论

Please add 7 and 8 and type the answer here:

关于博主

  一枚成分复杂的网络IT分子,属于互联网行业分类中的杂牌军。