如何使用Microsoft Visual Studio 2010编译旧版本的F#?
问题描述:
我努力学习F#的,我一直在寻找到一个Suduko求解程序[链接是在这里(http://www.ffconsultancy.com/dotnet/fsharp/sudoku/code/1/sudoku.fs)!原始程序是在Visual Studio 2005中开发的,但是当我试图使用Microsoft Visual Studio 2010再次构建它时,出现了一些错误。我手动添加引用System.Drawing中和System.Windows.Forms的,但VS2010似乎仍然没有认识到Idoms。 任何想法如何我能得到这个程序VS2010下编译?如何使用Microsoft Visual Studio 2010编译旧版本的F#?
答
因此修复的错误信息
如下替换需要作出
n -> string_of_int n : n->n.ToString()
Byte.of_int 0 : 0uy
IEnumurable : Seq
m.(y).(i) : m.[y].[i] //this appears with similar syntax a few times - just need to change round to square brackets
不知道为什么你越来越init_control
没有定义,一旦其他的东西是固定的,可能会好起来。
+0
谢谢约翰:)我想我可能想看看有关的最新F#版本的更多细节:) – John 2013-04-22 11:11:15
可能要列出你的错误? – 2013-04-22 10:53:50
这里是错误的列表: 错误FS0039:“string_of_int”没有定义 误差FS0039的值或构造:命名空间或模块“字节”是没有定义 错误FS0043:方法或对象构造“op_ArrayLookup”未找到 错误FS0039:价值或构造“init_control”没有定义 错误FS0039:命名空间或模块“的IEnumerable”没有定义 – John 2013-04-22 10:55:27