As part of the upgrade, my instance of F# got upgraded to 1.9.6.16. I then went to recompile some code and it failed. It turns out that if you use FsLex/FsYacc in your project (a wonderful feature IMO) then there's a slight glitch in this version of F#. You need to do two things to get it to work again:
- Copy 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
- Close and restart Visual Studio [this last step is vital]
If you do this, then Lex and Yacc will work from VS as before. Hurrah! I'm now a happy F# developer again!
No comments:
Post a Comment