Script# + Reflector
Script# + Reflector
One of the benefits of using Script# that I've alluded to multiple times now, is the ability to use a standard class browser like .NET Reflector against your code. If you're using Reflector, you probably want to browse your Script# assemblies separate from the .NET Framework assemblies because of their overlap (eg. both of them contain a definition of System.Object and other basic classes such as String, Int32 etc.). In fact Reflector has the notion of assembly lists so you can already create interesting groups of assemblies and open/browse them as a set.
I've been asking Lutz for a feature to enable defining and storing an assembly set into a file, and then launching reflector.exe with an assembly list file. He has added that functionality as of version 5.0.21.0, so if you don't have the latest version (you probably do, given the auto-update functionality) go and download it now.
Essentially you can now have .reflector files with a plain list of assembly paths. You'll need to run reflector.exe /register once so that file association is created. Once you've done that, you can download ScriptSharp.reflector (the set of Script# assemblies and ScriptFX script framework), and ScriptSharpAtlas.reflector (the set of Script# assemblies usable against Microsoft ASP.NET AJAX). Caveat: For these standalone files, I've assumed the default install path, so you may need to edit them depending on your particular setup. This will be cleaned up in the future once the Script# installer creates these files and places shortcuts into the start menu.
The screenshot below shows browsing against the ASP.NET AJAX assemblies along with documentation. As most users of reflector will know, the tool picks up the same doc-comments stored in xml files alongside their associated assemblies that are used to drive intellisense inside Visual Studio.

The Script# readme describes all the assemblies in more detail. So there you have it ... class-browser support and some initial documentation... enjoy!

No comments:
Post a Comment