This project is read-only.


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 4: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,

wrote May 25, 2010 at 4:59 PM

wrote May 25, 2010 at 8:15 PM

jvangael wrote May 25, 2010 at 8:16 PM

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

dmilom wrote May 26, 2010 at 2:43 AM

Just install and modify the registry

jvangael wrote May 26, 2010 at 10: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 7: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

wrote May 27, 2010 at 7:07 PM

dmilom wrote May 30, 2010 at 10:02 PM

I have updated build with this a fix to this.


wrote May 30, 2010 at 10:03 PM

wrote Mar 21, 2011 at 11:23 PM

jameskerry110 wrote Apr 9, 2011 at 11: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="" rel="dofollow">dissertation help</a> | <a href="" rel="dofollow">assignment help</a> | <a href="" rel="dofollow">essay help</a>

wrote Feb 22, 2013 at 12:25 AM

janelee1 wrote Apr 9, 2013 at 10:27 AM

I update it, and my problem is solve.

My page : essay writing
            [essay writing service](
            [assignment writing](
            [assignment help](

wrote May 16, 2013 at 11:44 AM

wrote May 16, 2013 at 11:44 AM

wrote Jun 14, 2013 at 8:24 AM

SmithMorgan wrote Aug 21, 2015 at 5:49 PM

Very useful post.. I hope you will continue your same best work and we will get more informative post which can helpful to us. assignment writers

Jarretcummings wrote Sep 30, 2015 at 11:48 AM

These plans to improving basic explanation of codeplex and explored the benefits, opportunities and challenges facing municipalities in using it.  The development and transit planning in according to well in desire goals. dissertation writers

qazx23 wrote Jan 31, 2016 at 2:00 PM

We can assure you one thing that the steam wallet codes available at the website are genuine and can be used in place of gift cards at the store.