nuget - VS2015 - 'NuGetPackage' 包未正确加载

标签 nuget visual-studio-2015

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


Microsoft Visual Studio


The 'NuGetPackage' package did not load correctly.

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:\Users\REDACTED\AppData\Roaming\Microsoft\VisualStudio\14.0\ActivityLog.xml.

Restarting Visual Studio could help resolve this issue.

Continue to show this error message?


[Yes] [No]


重新启动没有帮助。我检查了日志文件,发现以下与 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.0\COMMON7\IDE\
     EXTENSIONS\G2URSPAC.VAZ\...</description>
  <path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\
     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.0\COMMON7\IDE\EXTENSIONS\
     B1NUOYPH.H2N\...</description>
  <path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\COMMONEXTENSIONS\
     MICROSOFT\TEAMFOUNDATION\TEAM EXPLORER\</path>
</entry>

这会建议重复的扩展,但扩展管理器中似乎并非如此。

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

最佳答案

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

关于nuget - VS2015 - 'NuGetPackage' 包未正确加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31521438/

相关文章:

c# - WPF - 检测转换器中的设计模式

c# - 将 README.md 文件添加到 Visual Studio 2015 中的 c# 项目

c# - 运行代码片段并呈现结果的基本 VS 扩展(类似于 watch )

nuget - VS 项目模板 NuGet 包

javascript - 如何在示例 MathJax 上正确使用 ASP.Net Core 项目中的 JavaScript NuGet 库?

c# - 运行 dotnet publish -c Release -o out 时,在 ASP.NET Core 项目中构建 Dockerfile 失败

.net - 创建 NuGet 包时,是否可以修改现有的源代码文件?

c# - 发现/查找项目实际用于安装的 Nuget 包的 "packages"目录的物理位置

c++ - 在 Visual Studio 中使用 Winsock

c# - vs 2015 错误 CS0006 找不到元数据文件 .dll'