hubFS: THE place for F#

. . . are you on The Hub?
Welcome to hubFS: THE place for F# Sign in | Join | Help
in Search

F# & Compact Framework

Last post 07-25-2008, 12:53 by Mirrorer. 2 replies.
Sort Posts: Previous Next
  •  07-25-2008, 0:24 6442

    F# & Compact Framework

    Greetings!
    I'd like to know is it possible to compile application written in F# to Compact Framework.

    Actually, I tried to compile and added references to Compact Framework versions of System, System.Data and WinForms assemblies. But compiled application has reference to FSharp.Core.dll and this dll has references to non-CF assemblies.

    So, is it possible to use F# for CF programming or not ?
  •  07-25-2008, 9:58 6445 in reply to 6442

    Re: F# & Compact Framework

    Hi Mirrorer:

    Quite a few versions ago, I wrote a "Hello, World" WinForms app and successfully ran it on my Windows Mobile 6 phone.  As I recall, you must use the "--standalone" flag along with pointing "--clr-root" at the right mscorelib.dll.  Run "fsc --full-help" for additional switches that may be needed.

    However, note that your resulting application will be at least 1MB in size, and so will take quite a long time to initialize.  I was not successful in reducing the size down from there.  <IAmNotALawyer>It *may* be legal to copy the DLL's to your CF device, as long as it is for personal use and not for distribution, but *please* read the EULA carefully.</IAmNotALawyer>  Even then, it may not reduce startup time.


    "It seems that perfection is reached, not when there is nothing left to add, but rather when nothing more can be taken away." -- Antoine de St. Exupéry
  •  07-25-2008, 12:53 6446 in reply to 6445

    Re: F# & Compact Framework

    Hi jhugard! thanks for help. I'll try it.

    Really, "fsc --full-help" is really helpful switch :)
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems