Rearranged some of the helper methods for opening things in ILSpy.
Added methods to open Project and CodeItem in ILSpy.
Had hoped the latter would help with opening from Call Stack, but can't see how procedurally access the call stack window.
Asked how to do so here: http://stackoverflow.com/questions/36726595/how-to-get-a-programmable-interface-to-the-visual-studio-call-stack-window
"Open code in ILSpy" now works for:
- classes, interfaces and structs (generic or not, nested or not)
- enums
- fields and properties
- constructors (generic or not)
- overloaded constructors, unless they are generic or use type parameters of their generic class
- methods (generic or not)
- overloaded methods, unless they are generic or use type parameters of their generic class
TODO: disambiguate overloaded generic constructors and methods
https://github.com/icsharpcode/ILSpy/issues/694
Supports methods, enums, delegates, properties, interfaces, events and classes.
TODO: disambiguate overloaded methods by number and type of parameters
Changes (only) to ILSpy.AddIn project:
add: code window context menu item "Open code in ILSpy"
add: OpenCodeItemInILSpyCallback does the work, using Visual Studio code model to interrogate source at selection point
change: add additional argument support to OpenAssemblyInILSpy (to support "/navigateTo")
For the moment, we need to use a customized Mono.Cecil in ILSpy (thread-safe branch + System.Runtime fix),
and build NRefactory against that.
Add script for building ICSharpCode.Decompiler NuGet package.
This package is built against the NuGet Mono.Cecil and NRefactory packages, not against the sourcecode included in this repository.
These are installed using Automatic Package Restore
As long as we reference all VS assemblies from this
package and make sure to stick to v10 packages, the
addin should work in every version of Visual Studio
starting with 2010.