You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install Visual Studio 2019. (This should also work with older versions (2017, 2015, …).)
Launch Visual Studio.
Create a C# class library project (.NET Framework).
In the Solution Explorer tool window, right-click on the project and select "Manage NuGet Packages..."
Exit Visual Studio.
Install a newer NuGet VSIX.
(Optional) Open a developer command prompt and run: devenv /clearCache
Launch Visual Studio.
Open the project created in step 3.
In the Solution Explorer tool window, right-click on the project and select "Manage NuGet Packages..."
Result:
A System.Runtime.Serialization.SerializationException exception is thrown here.
System.Runtime.Serialization.SerializationException: Unable to find assembly 'NuGet.Tools, Version=5.2.0.1108, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
at System.Runtime.Serialization.Formatters.Binary.BinaryAssemblyInfo.GetAssembly()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.GetType(BinaryAssemblyInfo assemblyInfo, String name)
at System.Runtime.Serialization.Formatters.Binary.ObjectMap..ctor(String objectName, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[] typeInformationA, Int32[] memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped record)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryHeaderEnum binaryHeaderEnum)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream)
at NuGetVSExtension.SolutionUserOptions.ReadUserOptions(IStream pOptionsStream, String _)
NuGet serializes its solution user options using binary serialization and this creates a dependency on the exact assembly (per strong name) used to serialize those settings.
The text was updated successfully, but these errors were encountered:
Repro steps:
(Optional) Open a developer command prompt and run:
devenv /clearCache
Result:
A
System.Runtime.Serialization.SerializationException
exception is thrown here.NuGet serializes its solution user options using binary serialization and this creates a dependency on the exact assembly (per strong name) used to serialize those settings.
The text was updated successfully, but these errors were encountered: