hubFS: THE place for F#

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

Resource Compilation Error with Samples101?

Last post 10-24-2007, 17:48 by mmeisinger. 2 replies.
Sort Posts: Previous Next
  •  09-10-2007, 10:28 3613

    Resource Compilation Error with Samples101?

    I just installed F# 1.9.2.9.  The notes claim that the Resource Compilation issue with Samples101 is fixed.  However, when I try and run the build.bat I get the following output.

    C:\Program Files\FSharp-1.9.2.9\samples\fsharp\Samples101>build.bat

    --> Executing 'C:\Program Files\FSharp-1.9.2.9\bin\resxc.exe -o "C:\Program Files\FSharp-1.9.2.\samples\fsharp\Samples101\SampleForm.resources" "C:\Program Fil
    es\FSharp-1.9.2.9\samples\fsharp\Samples101\SampleForm.resx"'... in directory 'C
    :\Program Files\FSharp-1.9.2.9\samples\fsharp\Samples101'
    'C:\Program' is not recognized as an internal or external command,
    operable program or batch file.

    It looks as if when the compiler starts the resxc.exe program it doesn't enclose the path in quotes.  Is there some way I can fix this other than installing F# into a different location?  Also, does the Resource compiler now work with F# projects in Visual Studio?

    Thanks for any help.

  •  09-12-2007, 9:48 3619 in reply to 3613

    Re: Resource Compilation Error with Samples101?

    Hi,
    this is probably the same issue as discussed here: http://cs.hubfs.net/forums/thread/3551.aspx
    (so it will be probably fixed in the next version).

    Until then, you can just copy the samples to a different folder (that doesn't contain space in the path) without reinstalling the whole F#, or use the resource compiler explicitly:

    In the 'Samples101' directory, you can use the following commands:

    ..\..\..\bin\resxc.exe -o sampleform.resources SampleForm.resx
    ..\..\..\bin\fsc -o samples101.exe --resource SampleForm.resources sample.fs
       beginnersInLightSyntax.fs sampleform.fs program.fs


    Tomas Petricek, C# MVP
    http://tomasp.net/blog
  •  10-24-2007, 17:48 3864 in reply to 3619

    Re: Resource Compilation Error with Samples101?

    i don't know about the person who posted the question but... this worked for like a champ...
    thanks for the tip/info

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems