Questions tagged [fsharpcodeprovider]

FSharpCodeProvider provides access to the F# compiler and code generator

Applications can use FSharpCodeProvider to compile F# source code from in-memory string or file on disk and produce a .NET executable assembly in memory or in a DLL file on disk.

4 questions
7
votes
1 answer

Besides FSharpCodeProvider (from PowerPack), what else in needed for compiling F# code on the fly?

I'm compiling code on the fly using the FSharpCodeProvider class coming on the PowerPack libraries. The point is that in a machine without visual studio 2010 I'm able to do that only as long as I have the F# standalone compiler installed in that…
5
votes
1 answer

f# slow compilation

Is there anything I can do to make f# code compile faster apart from (or better yet instead of) running ngen? And what is approximate benchmark "hello world" compilation time (or better said compiler startup time+compilation time) for say pentium 4…
ren
  • 3,843
  • 9
  • 50
  • 95
1
vote
0 answers

CompileAssemblyFromFile

Why I get the error when trying to do this function: let compile_file path use_asms output = use pro = new FSharpCodeProvider() let opt = CompilerParameters(use_asms, output) let res = pro.CompileAssemblyFromFile(opt, path) // <--…
RomanKovalev
  • 852
  • 3
  • 10
  • 29
1
vote
1 answer

Automatic generation of record type based on MySql database tables, for use in FSharpDAL

I have been using FSharpDAL to read data tables in Mysql database. It works well, but you have to provide it the record type. Which means for every table you have to define a record type. I would like to get the record type generated automaticly…
jlezard
  • 1,417
  • 2
  • 15
  • 32