locked
Recompiling for F# 2.0 (Migrated from community.research.microsoft.com) RRS feed

  • Question

  • patwa posted on 06-24-2010 5:20 AM

    I need some hints on how to recompile Infer.Net for F# 2.0. I'm using Visual Studio 2008.

    Friday, June 3, 2011 5:56 PM

Answers

  • nbeckman replied on 07-07-2010 3:57 PM

    Also patwa, you only need to "compile Infer.NET for F#" if you want to use the F# wrapper. I have been using F# 2.0 and Infer.NET for a while, and I rarely (maybe never?) use the functions in the F# wrapper.

    Nels

    Friday, June 3, 2011 5:57 PM

All replies

  • John Guiver replied on 06-29-2010 10:25 AM

    Assuming that: (a) you are talking about the F# wrapper, and (b) you installed Infer.NET and F# 2.0 for Visual Studio 8 in the default locations, go to a folder where you have write permission, and run the following command:

    "C:\Program Files\FSharp-2.0.0.0\bin\fsc.exe" -o:Infer.FSharp.dll --doc:Infer.FSharp.XML -r:"C:\Program Files\Microsoft Research\Infer.NET 2.3 Beta\bin\Release\Infer.Compiler.dll" -r:"C:\Program Files\Microsoft Research\Infer.NET 2.3 Beta\bin\Release\Infer.Runtime.dll" -r:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll --target:library "C:\Program Files\Microsoft Research\Infer.NET 2.3 Beta\Source\Wrappers\FSharp\FSharpWrapper.fs"

    This will build the wrapper dll (and associated documentation) targetted for .NET framework 2.0.

    John

    Friday, June 3, 2011 5:56 PM
  • patwa replied on 06-29-2010 11:44 AM

    I'm afraid I didn't manage to do this. Hopefully you can put a new compiled version out soon.

    Friday, June 3, 2011 5:56 PM
  • John Guiver replied on 06-29-2010 11:50 AM

    What problem did you face when you tried to do this?

    Friday, June 3, 2011 5:56 PM
  • patwa replied on 06-29-2010 12:06 PM

    I don't know how to run commands in Windows 7

    Friday, June 3, 2011 5:57 PM
  • jwinn replied on 07-07-2010 3:26 AM

    Run 'Command prompt' from the start menu.

    John W.

    Friday, June 3, 2011 5:57 PM
  • nbeckman replied on 07-07-2010 3:57 PM

    Also patwa, you only need to "compile Infer.NET for F#" if you want to use the F# wrapper. I have been using F# 2.0 and Infer.NET for a while, and I rarely (maybe never?) use the functions in the F# wrapper.

    Nels

    Friday, June 3, 2011 5:57 PM