Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ilspycmd 5.0.0-preview 1 fails with System.InvalidOperationException: Failed to compare two elements in the array #1480

Closed
clguimanMSFT opened this Issue Apr 9, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@clguimanMSFT
Copy link

clguimanMSFT commented Apr 9, 2019

Ran ilspycmd assembly.dll -o d:\temp\decompile -d

System.InvalidOperationException: Failed to compare two elements in the array. ---> System.ArgumentException: At least one object must implement IComparable.
   at System.Collections.Comparer.Compare(Object a, Object b)
   at System.Collections.Generic.ObjectComparer`1.Compare(T x, T y)
   at System.Collections.Generic.ArraySortHelper`1.InsertionSort(T[] keys, Int32 lo, Int32 hi, Comparison`1 comparer)
   at System.Collections.Generic.GenericArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer)
   --- End of inner exception stack trace ---
   at System.Collections.Generic.GenericArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer)
   at System.Array.Sort[T](T[] array, Int32 index, Int32 length, IComparer`1 comparer)
   at System.Collections.Generic.List`1.Sort(Int32 index, Int32 count, IComparer`1 comparer)
   at ICSharpCode.Decompiler.DebugInfo.PortablePdbWriter.WritePdb(PEFile file, CSharpDecompiler decompiler, DecompilerSettings settings, Stream targetStream, Boolean noLogo)
   at ICSharpCode.Decompiler.Console.ILSpyCmdProgram.GeneratePdbForAssembly(String assemblyFileName, String pdbFileName, String[] referencePaths, CommandLineApplication app) in D:\GitWorkspace\ILSpy\ICSharpCode.Decompiler.Console\IlspyCmdProgram.cs:line 193
   at ICSharpCode.Decompiler.Console.ILSpyCmdProgram.OnExecute(CommandLineApplication app) in D:\GitWorkspace\ILSpy\ICSharpCode.Decompiler.Console\IlspyCmdProgram.cs:line 87

I can share the assembly in a private email.

@siegfriedpammer

This comment has been minimized.

Copy link
Member

siegfriedpammer commented Apr 9, 2019

Please send an email to siegfried.pammer@gmail.com, thank you very much!

@clguimanMSFT

This comment has been minimized.

Copy link
Author

clguimanMSFT commented Apr 9, 2019

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.