Friday, February 3, 2012

F# PowerPack with Visual Studio 11 Preview

Everyday I learn something new.. :-)

If you use PowerPack with DEV11 preview version and somehow cannot reference to some types in the powerpack. Adding the following line into the App.config fiile

< bindingredirect newversion="" oldversion="" >< / bindingredirect >

is the way to fix it. Detailed info about bindingRedirect can be found here.

if it is for FSI.exe, then you need to fix in C:\Program Files\Microsoft SDKs\F#\3.0\Framework\v4.0\Fsi.exe.config.

Not only the PowerPack, any DEV10 project you find cannot compile after upgrade, you can always add the following section in the app.config file. The following is the full list the redirection.

< dependentAssembly >
          < assemblyIdentity name="FSharp.Core" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"  />
          < bindingRedirect oldVersion="" newVersion="" />
          < bindingRedirect oldVersion="" newVersion="" />
          < bindingRedirect oldVersion="" newVersion="" />

1 comment:

Phillip Trelford said...

Thanks, this helped me troubleshoot a runtime issue with FsCheck.