f# - FSlex/FSyacc 崩溃 - 无法找到 FSharp.Core 程序集

标签 f# windows-8 visual-studio-2012 fsyacc fslex

我遇到了 FSlex/FSyacc 在我的计算机上崩溃的问题。

在上下文中,这是在 Windows 8 Consumer Preview(32 位)上运行的 Visual Studio 11 beta 内,在 Parallels 虚拟机内运行。

------ Build started: Project: Basis, Configuration: Debug Any CPU ------ C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1546,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "log4net, Version=1.2.11.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. Basis -> C:\Users\nexus\Desktop\Statical\trunk\Statical\Basis\bin\Debug\Basis.dll ------ Build started: Project: Syntax, Configuration: Debug Any CPU ------ cd C:\Users\nexus\Desktop\Statical\trunk\Statical\Syntax\ CALL C:\Users\nexus\Desktop\Statical\trunk\Statical\Syntax\fsyacc.cmd CALL C:\Users\nexus\Desktop\Statical\trunk\Statical\Syntax\fslex.cmd Running fsyacc.cmd... CalParser.fsp Running fsyacc.exe... Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'FSharp.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'FSharp.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at .$FSharp.PowerPack.FsYacc.Driver.main@() WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. Running fslex.cmd... Not running fslex.exe as CalLexer.fs is newer than CalLexer.fsl C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1036,5): error MSB3073: The command "cd C:\Users\nexus\Desktop\Statical\trunk\Statical\Syntax\ CALL C:\Users\nexus\Desktop\Statical\trunk\Statical\Syntax\fsyacc.cmd CALL C:\Users\nexus\Desktop\Statical\trunk\Statical\Syntax\fslex.cmd" exited with code -532459699. Done building project "Syntax.fsproj" -- FAILED.

相关部分似乎是这样的:

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'FSharp.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'FSharp.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at .$FSharp.PowerPack.FsYacc.Driver.main@()

不知道为什么它找不到 FSharp.Core 程序集。

想法?

最佳答案

我忘记安装 F# 2.0。对此存在依赖性。

关于f# - FSlex/FSyacc 崩溃 - 无法找到 FSharp.Core 程序集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10764659/

相关文章:

F# 列表中所有其他元素的总和

windows - 获取可执行的 Windows 8 应用程序

windows-8 - 填充 Windows 8 "All apps"列表

c# - 在此示例中使用 get 和 set 属性有什么好处?

list - 如何使用 List.map 实现 List.allPairs?

f# - FSharp.Data Csv.Load() 失败,仅支持 Web 位置

syntax - 在 lambda 中调用对象方法的 F# 简写

windows-8 - 操作模式解释

windows - Windows 8声音主题无法针对VS2012发布生成

git - 如何在 Visual Studio 中更改 GitHub URL?