FSharp.Compiler.CodeDom for VS2008 and VS2010 side by side

I am using FSharp.Compiler.CodeDom (from PowerPack ) to dynamically create F # classes. The problem is that I have VS2008 and VS2010 on my computer side by side (they work fine), and using F # in this configuration is buggy at best:

  • If I do not install InstallFSharp.msi, then in VS2008 the built-in classes complain that they do not detect FSharp.Core (even if they reference)
  • If I install InstallFSharp.msi, then in VS2008 the built classes will use the F # created for VS2010 and will throw a binary incompatibility exception because it will load the .net4 variant:

    FSC: error FS0219: default or default CLI base library - mscorlib - incompatible with the F # 'C: \ Program Files (x86) \ Microsoft F # \ v4.0 \ FSharp.Core.dll core library. Consider recompiling the library or explicitly linking to a version of that library that matches the version of the CLI you are using.

  • If I replaced the F # found in the previous location with separately installed dlls, then, of course, VS2010 will complain about binary incompatibility

Am I missing something, or will they not just work for a common environment like this? This can mean real problems when deploying applications.

thank

+2
source share
3 answers

: ​​ VS 2008, VS 2010. F # , .

, , - -noframework. () , mscorlib.dll System.dll , , , .NET-.

+2

, , , PowerPack? , 27 , , 30 . , - , .

, , :)

+1

, reghack (Windows 7): Windows 5.00

[- HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\FSharp\2.0\ ]

, / , , , 2.0. , reg.

+1

All Articles