Skip to content

DecompilerServer v1.5.0: ILSpy 11 and generic type fixes

Latest

Choose a tag to compare

@github-actions github-actions released this 22 Nov 14:43

DecompilerServer now uses ILSpy 11.2. Comparison and symbol lookup now tell a type apart from its generic twin, such as IFoo and IFoo<T>. An empty caller search now says where to look next.

Comparison

  • compare_contexts no longer fails on assemblies that declare a type next to its generic twin. Before, the whole call failed with "An item with the same key has already been added".
  • compare_contexts items use the reflection name as typeName, for example N.IFoo`1 or N.Outer+Inner. v1.4.0 used the full name, which drops the generic arity. You can pass typeName unchanged to compare_symbols.
  • compare_symbols resolves one type for both contexts, so it never diffs two different types. A plain name such as N.IFoo means the non-generic type. N.IFoo`1 selects the generic one. If a name matches more than one type, resolution lists the candidates and names the type it compared.
  • Malformed or obfuscated metadata can repeat a type name. The repeats get #2, #3 suffixes, and typeNameCollisions reports them.

Lookup

  • Symbols such as N.IFoo:Method resolve to the non-generic type, whatever the declaration order. N.IFoo`1:Method selects the generic type.
  • If find_callers or find_usages finds nothing in assembly scope, the response has hints. When other contexts are loaded, the hint repeats the call with scope: "workspace". Otherwise it suggests that you load the dependent assemblies first.

Dependencies

  • ICSharpCode.Decompiler 11.2.0.10050, up from 10.0.1.8346. ILSpy 11 writes newer C# in places, for example default instead of default(T). Body diffs between two server versions can show these changes.
  • ModelContextProtocol 1.4.2 and Microsoft.Extensions.Hosting 10.0.15.

Updating

Restart or reconnect your MCP client after you replace the executable. If a script matches compare_contexts typeName against full names, change it to use reflection names.

Thanks to @konstant16-Z for #54, #55 and #56.

All 253 Release tests pass locally. A freshly launched server also passed an MCP smoke test.

Requires the .NET 10 runtime. Downloads are available for Windows x64, macOS Apple Silicon and Intel, and Linux x64 and ARM64.