hubFS: THE place for F#

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

VS 2008 fslex/fsyacc build task problem [1.9.6.16]

Last post 05-23-2009, 12:09 by jaruch. 2 replies.
Sort Posts: Previous Next
  •  05-23-2009, 7:26 10484

    VS 2008 fslex/fsyacc build task problem [1.9.6.16]

    Today I switched our project to new F# 1.9.6.16 (btw. great work, especially in Silverlight support) and I have problem with build tasks for fslex and fsyacc.
    Until now I used solution described in other thread on this forum, http://cs.hubfs.net/forums/thread/3655.aspx, and it worked for me.
    However, when I use this approach in 1.9.6.16 I get this error:

    FSharp.PowerPack.Targets(33,3): error MSB4062: The "FsLex" task could not be loaded from the assembly C:\Program Files\MSBuild\FSharp\1.0\FSharp.PowerPack.Build.Tasks.dll. Could not load file or assembly 'file:///C:\Program Files\MSBuild\FSharp\1.0\FSharp.PowerPack.Build.Tasks.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, and that the assembly and all its dependencies are available.

    I wasn't able to solve this. I'm targeting Silverlight runtime when compiling sources.

    Any advice?
  •  05-23-2009, 10:28 10493 in reply to 10484

    Re: VS 2008 fslex/fsyacc build task problem [1.9.6.16]

    Looks like we maybe failed to deploy that DLL to the right directory.  Can you try copying from

    c:\Program Files\FSharp-1.9.6.16\bin\gac\FSharp.PowerPack.Build.Tasks.dll

    to

    C:\Program Files\MSBuild\FSharp\1.0\FSharp.PowerPack.Build.Tasks.dll

    and see if that fixes it?

  •  05-23-2009, 12:09 10499 in reply to 10493

    Re: VS 2008 fslex/fsyacc build task problem [1.9.6.16]

    Thanks, it works now.
    I tried to copy the dll from from bin\ folder and it didn't work, I didn't expect there would be another one in bin\gac Smile [:)]
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems