VS2015 - 'NuGetPackage' 包没有正确加载 [英] VS2015 - The 'NuGetPackage' package did not load correctly

查看:14
本文介绍了VS2015 - 'NuGetPackage' 包没有正确加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚打开VS 2015 Enterprise RTM,打开一个现有的工作项目,出现如下错误:

Just opened up VS 2015 Enterprise RTM, opened up an existing working project, getting the following error:

微软视觉工作室

NuGetPackage"包未正确加载.

The 'NuGetPackage' package did not load correctly.

问题可能是由配置更改或安装另一个扩展程序引起的.您可以通过检查文件 C:UsersREDACTEDAppDataRoamingMicrosoftVisualStudio14.0ActivityLog.xml 来获取更多信息.

The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by examining the file C:UsersREDACTEDAppDataRoamingMicrosoftVisualStudio14.0ActivityLog.xml.

重新启动 Visual Studio 可以帮助解决此问题.

Restarting Visual Studio could help resolve this issue.

继续显示此错误信息?

[是] [否]

重新启动没有帮助.我检查了日志文件,发现以下与 nuget 相关的部分:

Restarting didn't help. I've examined the log file, and found the following sections relevant to nuget:

<entry>
  <record>555</record>
  <time>2015/07/20 16:06:34.364</time>
  <type>Error</type>
  <source>Extension Manager</source>
  <description>Extension will not be loaded because an extension with the same ID 
     &apos;Microsoft.Dev14.VsixTemplatesPackage.443cca91-ec20-41e5-a165-f28e56b89650&apos; 
     is already loaded at C:PROGRAM FILES (X86)MICROSOFT VISUAL STUDIO 14.0COMMON7IDE
     EXTENSIONSG2URSPAC.VAZ...</description>
  <path>C:PROGRAM FILES (X86)MICROSOFT VISUAL STUDIO 14.0COMMON7IDEEXTENSIONS
     NUGETIFIEDEXTENSIBILITYTEMPLATES</path>
</entry>
<entry>
  <record>556</record>
  <time>2015/07/20 16:06:34.364</time>
  <type>Error</type>
  <source>Extension Manager</source>
  <description>Extension will not be loaded because an extension with the same ID
     &apos;Microsoft.VisualStudio.TeamFoundation.TeamExplorer.Extensions&apos; is already
     loaded at C:PROGRAM FILES (X86)MICROSOFT VISUAL STUDIO 14.0COMMON7IDEEXTENSIONS
     B1NUOYPH.H2N...</description>
  <path>C:PROGRAM FILES (X86)MICROSOFT VISUAL STUDIO 14.0COMMON7IDECOMMONEXTENSIONS
     MICROSOFTTEAMFOUNDATIONTEAM EXPLORER</path>
</entry>

这会建议重复扩展,但扩展管理器中似乎不是这种情况.

Which would suggest a duplicate extension, but this doesn't seem to be the case in the extensions manager.

这是在一台也安装了 VS2013 的机器上.它从未安装过任何 VS2015 的预览版/RC 版本.

This is on a machine that also has VS2013 installed. It has not had any of the preview/RC builds of VS2015 installed ever.

推荐答案

通过扩展和更新完全删除 NuGet,重新启动 VS 然后通过扩展和更新重新安装 NuGet 解决了我的问题.无需重新安装完整的 VS.

Completely removing NuGet via Extensions and Updates, restarting VS then re-installing NuGet via Extensions and Updates solved the issue for me. A full VS reinstall was not necessary.

这篇关于VS2015 - 'NuGetPackage' 包没有正确加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆