2016-08-08 34 views
0

Ich verbrachte das Wochenende Update meiner Visual Studio 2015 Installation auf Update 3. Und ich installierte die Core. Net CLI (Command Tools Interface). Und rat das Update "ASP.Net und WebTools Tooling".Warum bekomme ich die Meldung "Das 'NuGetPackage' Paket wurde nicht korrekt geladen"?

ich wieder an die Arbeit, Visual Studio starten, unser Projekt öffnen, und jetzt bekomme ich dies:


Die ‚NuGetPackage‘ Paket ordnungsgemäß nicht geladen.

Das Problem wurde möglicherweise durch eine Konfigurationsänderung oder durch die Installation einer anderen Erweiterung verursacht. Sie können anhand der Datei weitere Informationen erhalten:

'C: \ Benutzer \ samuel \ AppData \ Roaming \ Microsoft \ Visualstudio \ 14.0 \ ActivityLog.xml'

Neustarten Visual Studio könnte helfen, dieses Problem zu beheben.

Wird diese Fehlermeldung weiterhin angezeigt? Hier


ist der Fehler aus dem Aktivitätsprotokoll:

CreateInstance failed for package [NuGetPackage]Source: 
    'mscorlib' 
    Description: Could not load file or assembly 'NuGet.Tools,  Version=3.4.4.1321, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' 
    or one of its dependencies. 
    The system cannot find the file specified. 
    
 
    
System.IO.FileNotFoundException: 
    Could not load file or assembly 'NuGet.Tools, Version=3.4.4.1321,  Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' 
    or one of its dependencies. The system cannot find the file  specified.
File name: 'NuGet.Tools, Version=3.4.4.1321,  Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
 
    at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String  codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint,  StackCrawlMark& stackMark, IntPtr pPrivHostBinder,  Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean  suppressSecurityChecks)
 
    at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String  codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint,  StackCrawlMark& stackMark, IntPtr pPrivHostBinder,  Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean  suppressSecurityChecks)
 
    at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName  (AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly  reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean  throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) 
 
    at System.Activator.CreateInstance(String assemblyString, String  typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[]  args, CultureInfo culture, Object[] activationAttributes, Evidence  securityInfo, StackCrawlMark& 
    stackMark)
 at System.Activator.CreateInstance(String  assemblyName, String typeName)
 
    at System.AppDomain.CreateInstance(String assemblyName, String typeName) 

 
    WRN: Assembly binding logging is turned OFF.
 
    To enable assembly bind failure logging, set the registry value   [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
 
    Note: There is some performance penalty associated with assembly bind  failure logging.
 
    &#x000A;To turn this feature off, remove the registry value  [HKLM\Software\Microsoft\Fusion!EnableLog].&#x000D;&#x000A;</description> 
    <guid>{5FCC8577-4FEB-4D04-AD72-D6C629B083CC}</guid> 

Deinstallation und Neuinstallation Nuget Package Manager von Tools -> Erweiterungen ein Updates scheint es behoben zu haben.

Wir werden sehen. Jemand in einem anderen Post sagte, sie dachten, es funktioniert, aber dann kam zurück und sagte es nicht: VS2015 - The 'NuGetPackage' package did not load correctly

+1

Schauen Sie sich die Lösung in [hier] (http://stackoverflow.com/questions/31521438/vs2015-the-nugetpackage-package-did-not-load-correctly). Ps.s. Es hat auch für mich funktioniert. – eg16

+0

Sollte das als die Antwort @ eg16 – Hutjepower

+0

@Hutjepower setzen Ich habe meinen Kommentar als Antwort hinzugefügt, so dass es hilfreich für die anderen ist. – eg16

Antwort

1

Sie müssen auf Update klicken oder installieren Sie die NuGet über Erweiterungen und Updates.

Tools > Extensions and Updates Updates > Visual Studio Gallery > Nuget Package 
2

Schauen Sie sich diese Antwort: VS2015 - The 'NuGetPackage' package did not load correctly

Komplett NuGet über Erweiterungen und Updates zu entfernen, einen Neustart VS dann wieder zu installieren NuGet über Erweiterungen und Updates löste das Problem für mich. Eine vollständige VS-Neuinstallation war nicht erforderlich.