编译F#多文件工程的文件顺序问题
2015-10-09 10:10
344 查看
学习F#时碰到一个奇怪的问题vs2015报错
“
Files
in libraries or multiple-file applications must begin with a namespace or module declaration, e.g. 'namespace SomeNamespace.SubNamespace' or 'module SomeNamespace.SomeModule'
在网上搜索了一下。发现stack overflow有解答,摘录一下备忘点击打开链接
“
Sounds
like this is an order-of-files-in-the-project issue. The last file is the entry point ("main method"), sounds like you have Alg.fs last, and you need Program.fs last. You can re-order them via the right-click context menu in VS Solution Explorer.
”
简单说,就是多文件工程在VS中需要保证Program.fs放在最后,在VS的解决方案资源管理器中拖拽一下顺序。就可以了
好不自然的约束啊。明显是偶发复杂性吗。怕忘,因此记录一下。
“
Files
in libraries or multiple-file applications must begin with a namespace or module declaration, e.g. 'namespace SomeNamespace.SubNamespace' or 'module SomeNamespace.SomeModule'
在网上搜索了一下。发现stack overflow有解答,摘录一下备忘点击打开链接
“
Sounds
like this is an order-of-files-in-the-project issue. The last file is the entry point ("main method"), sounds like you have Alg.fs last, and you need Program.fs last. You can re-order them via the right-click context menu in VS Solution Explorer.
”
简单说,就是多文件工程在VS中需要保证Program.fs放在最后,在VS的解决方案资源管理器中拖拽一下顺序。就可以了
好不自然的约束啊。明显是偶发复杂性吗。怕忘,因此记录一下。
相关文章推荐
- C#.NET获取拨号连接的宽带连接方法
- PowerShell中使用.NET将程序集加入全局程序集缓存
- .net(c#)中的new关键字详细介绍
- 由vbs sort引发.NET Framework之间的关系说明
- C#难点逐个击破(6):C#数据类型与.net framework数据类型
- .NET中的async和await关键字使用及Task异步调用实例
- .Net中的json操作类用法分析
- .net实现序列化与反序列化实例解析
- .NET中的Timer类型用法详解
- 关于.net(C#)中的跨进程访问的问题
- .NET实现父窗体关闭而不影响子窗体的方法
- 基于.Net中的数字与日期格式化规则助记词的使用详解
- .NET微信公众号开发之公众号消息处理
- .Net下的签名与混淆图文分析
- .NET 扩展实现代码
- .NET实现定时发送邮件代码(两种方式)
- .net实现文件读写的几种常用方法
- .net文件上传时实现通过文件头确认文件类型的方法
- 四个常用的.NET的SQLHELPER方法实例
- .net中前台javascript与后台c#函数相互调用问题