Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
489 views
in Technique[技术] by (71.8m points)

nuget - VS2015 - The 'NuGetPackage' package did not load correctly

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


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:UsersREDACTEDAppDataRoamingMicrosoftVisualStudio14.0ActivityLog.xml.

Restarting Visual Studio could help resolve this issue.

Continue to show this error message?


[Yes] [No]


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.

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...