Version breaks fslex/fsyacc build in VS2010


I have a F# project with a fslex and fsyacc file. With Version it builds fine.
The PowerPack bin directory is not listed in the PATH.
Upgrading to the fslex and fsyacc binaries are searched in the wrong place and not found.
Even changing the PATH variable to contain the PowerPack bin directory does not solve this problem.
The resulting error code is:
C:\Program Files\MSBuild\FSharp\1.0\FSharp.PowerPack.Targets(32,3): Fehler MSB6004: Der Speicherort "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\fslex.exe" der angegebenen ausführbaren Datei der Aufgabe ist ungültig.
After downgrading to the build works flawlessly again.
Thanks for the support,


dmilom wrote May 25, 2010 at 3:57 PM

Hi Vince,
it is indeed a bug in release (I forgot to update a version number in FSharp.PowerPack\CompilerLocationUtil.fs).
As a workaround, you can add a HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework\AssemblyFolders\FSharp.PowerPack- key with a default value pointing to PowerPack installation (C:\Program Files (x86)\FSharpPowerPack-\bin).

Sorry for the inconvenience,
Hope this helps,

jvangael wrote May 25, 2010 at 7:16 PM

I can't install next to Is there a fix if you just have

dmilom wrote May 26, 2010 at 1:43 AM

Just install and modify the registry

jvangael wrote May 26, 2010 at 9:16 PM

I reinstalled and modified the registry but still get the error:

------ Rebuild All started: Project: Naga, Configuration: Debug x86 ------
    -o NagaLexer.fs --unicode  NagaLexer.fsl
C:\Program Files\MSBuild\FSharp\1.0\FSharp.PowerPack.Targets(32,3): error MSB6004: The specified task executable location "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\fslex.exe" is invalid.
Done building project "Naga.fsproj" -- FAILED.

RomanKuzmin wrote May 27, 2010 at 6:06 PM

I have written a PowerShell script that does the patch:

Run this after installation of F# PowerPack

$path = 'HKLM:\SOFTWARE\Microsoft.NETFramework\AssemblyFolders\FSharp.PowerPack-'
$null = New-Item $path -Force
$bin = (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft.NETFramework\AssemblyFolders\FSharp.PowerPack-').'(default)'
Set-ItemProperty $path '(default)' $bin

dmilom wrote May 30, 2010 at 9:02 PM

I have updated build with this a fix to this.


jameskerry110 wrote Apr 9, 2011 at 10:29 AM

If the correct answer is that I need to move a DLL from the F# SDK (on Windows), that is fine. But I'd like to know whether anyone else has tried this and discovered any other important dependencies to make the PowerPack work in general. <a href="http://www.realdissertationwriting.com/" rel="dofollow">dissertation help</a> | <a href="http://www.realassignmentwriting.com/" rel="dofollow">assignment help</a> | <a href="http://www.realessaywriting.com/" rel="dofollow">essay help</a>

janelee1 wrote Apr 9, 2013 at 9:27 AM

I update it, and my problem is solve.

My page : essay writing
            [essay writing service](http://www.essaywritingservice.com.au/2012/08/20/essay-writing-brisbane-solutions/)
            [assignment writing](http://www.essaywritingservice.com.au/2012/12/01/learn-how-to-improve-your-assignment-writing/)
            [assignment help](http://www.essaywritingservice.com.au/2012/12/19/improve-your-grades-with-the-online-assignment-help/)