Skip to content
This repository has been archived by the owner on Oct 4, 2018. It is now read-only.

Sample back end for msil-decompiler-vscode extension

License

Notifications You must be signed in to change notification settings

jeremymeng/msil-decompiler-backend

Repository files navigation

ILSpy back end service

ILSpy.Host

A back end service to provide MSIL decompilations using ICSharpCode.Decompiler API.

Usage:  [options]

Options:
  -? | -h | --help   Show help information
  -a | --assembly    Path to the managed assembly to decompile
  -p | --port        ILSpy.Host port (defaults to 2000).
  -l | --loglevel    Level of logging (defaults to 'Information').
  -v | --verbose     Explicitly set 'Debug' log level.
  -hpid | --hostPID  Host process ID.
  -stdio | --stdio   Use STDIO over HTTP as ILSpy.Host communication protocol.
  -e | --encoding    Input / output encoding for STDIO protocol.
  -i | --interface   Server interface address (defaults to 'localhost').

Supported commands are of the following format

{"Seq":1,"Command":"/addassembly",Arguments:{"AssemblyPath":"E:\\temp\\TestAssembly.dll"}}
{"Seq":2,"Command":"/decompileassembly",Arguments:{"AssemblyPath":"E:\\temp\\TestAssembly.dll"}}
{"Seq":3,"Command":"/listtypes",Arguments:{"AssemblyPath":"E:\\temp\\TestAssembly.dll","Namespace":"TestAssembly"}}
{"Seq":4,"Command":"/decompiletype",Arguments:{"AssemblyPath":"E:\\temp\\TestAssembly.dll","Rid":2}}
{"Seq":5,"Command":"/listmembers",Arguments:{"AssemblyPath":"E:\\temp\\TestAssembly.dll","Rid":2}}
{"Seq":6,"Command":"/decompilemember",Arguments:{"AssemblyPath":"E:\\temp\\TestAssembly.dll","TypeRid":2,"MemberType":100663296,"MemberRid":3}}

Develop

To build the solution, open a Visual Studio 2017 command prompt

git clone <REPO_URL>
git submodule init
git submodule update
msbuild /t:Restore,Build ILSpy-server.sln

License

MIT license.

About

Sample back end for msil-decompiler-vscode extension

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages