fsharp/fsharpbinding — pull request #57 by tpetricek (2012-11-11 19:28:26+00:00)
Title: Refactoring of the FSharpCompiler wrapper

I updated my [FSharp.Formatting](https://github.com/tpetricek/FSharp.Formatting) project that is used by www.fssnip.net and a WinForms F# code formatting application to use the shared wrappers available in `FSharp.CompilerBinding.dll`.

The FSharp.Formatting project needs to be able to reference an arbitrary version of the compiler (you specify `dll` file), which was not possible in the version here.

This pull request refactors the code and moves the automatic lookup functionality to a static method (and it is used by default), but it adds `BindToAssembly` method that can be used to specify alternative assembly.

This is needed for example if you want to format code for non-latest version of F# (or for a custom version built from source.)