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

System.InvalidOperationException: Sequence contains no matching element #1625

Closed
greenozon opened this issue Aug 7, 2019 · 2 comments

Comments

@greenozon
Copy link

commented Aug 7, 2019

ILSpy version 5.0.0.5049-preview4

System.InvalidOperationException: Sequence contains no matching element
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
   at ILSpy.BamlDecompiler.Baml.KnownThings.ResolveAssembly(String name)
   at ILSpy.BamlDecompiler.Baml.KnownThings.InitAssemblies()
   at ILSpy.BamlDecompiler.Baml.KnownThings..ctor(IDecompilerTypeSystem typeSystem)
   at ILSpy.BamlDecompiler.Baml.BamlContext..ctor(IDecompilerTypeSystem typeSystem)
   at ILSpy.BamlDecompiler.Baml.BamlContext.ConstructContext(IDecompilerTypeSystem typeSystem, BamlDocument document, CancellationToken token)
   at ILSpy.BamlDecompiler.XamlContext.Construct(IDecompilerTypeSystem typeSystem, BamlDocument document, CancellationToken token, BamlDecompilerOptions bamlDecompilerOptions)
   at ILSpy.BamlDecompiler.XamlDecompiler.Decompile(IDecompilerTypeSystem typeSystem, BamlDocument document, CancellationToken token, BamlDecompilerOptions bamlDecompilerOptions, List`1 assemblyReferences)
   at ILSpy.BamlDecompiler.BamlResourceEntryNode.LoadIntoDocument(PEFile module, IAssemblyResolver assemblyResolver, Stream stream, CancellationToken cancellationToken)
   at ILSpy.BamlDecompiler.BamlResourceFileHandler.WriteResourceToFile(LoadedAssembly assembly, String fileName, Stream stream, DecompilationOptions options)
   at ICSharpCode.ILSpy.CSharpLanguage.ILSpyWholeProjectDecompiler.WriteResourceToFile(String fileName, String resourceName, Stream entryStream)
   at ICSharpCode.Decompiler.CSharp.WholeProjectDecompiler.<WriteResourceFilesInProject>d__35.MoveNext()
   at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
   at ICSharpCode.Decompiler.CSharp.WholeProjectDecompiler.DecompileProject(PEFile moduleDefinition, String targetDirectory, TextWriter projectFileWriter, CancellationToken cancellationToken)
   at ICSharpCode.ILSpy.CSharpLanguage.DecompileAssembly(LoadedAssembly assembly, ITextOutput output, DecompilationOptions options)
   at ICSharpCode.ILSpy.TreeNodes.AssemblyTreeNode.Decompile(Language language, ITextOutput output, DecompilationOptions options)
   at ICSharpCode.ILSpy.TextView.DecompilerTextView.DecompileNodes(DecompilationContext context, ITextOutput textOutput)
   at ICSharpCode.ILSpy.TextView.DecompilerTextView.<>c__DisplayClass46_0.<SaveToDiskAsync>b__0()

https://www.sendspace.com/file/ers2qe

siegfriedpammer added a commit that referenced this issue Aug 9, 2019

@siegfriedpammer

This comment has been minimized.

Copy link
Member

commented Aug 9, 2019

Sorry, I cannot reproduce this. I used an empty assembly list to decompile the whole assembly.

@greenozon

This comment has been minimized.

Copy link
Author

commented Aug 9, 2019

Tested on ILSpy version 5.0.0.5057-preview4
not able to reproduce as well, closing

@greenozon greenozon closed this Aug 9, 2019

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