icsharpcode/ILSpy — pull request #302 by ivanjh (2011-12-22 03:39:22+00:00)
Title: Attach debugger using loaded runtime version, not assembly version

The debugger currently uses the process' exeFilename & GetRequestedRuntimeVersion to determine the runtime version. This doesn't support non-managed processes that load a runtime (e.g. w3wp).
This change is to use EnumerateLoadedRuntimes on the process to determine the runtime version.