【发布时间】:2014-09-14 01:02:03
【问题描述】:
我今天第一次在 Debian 上使用 mono,在加载我的 .dll 时出现错误。我正在使用 Linq to SQL
错误状态:程序集中缺少方法 .ctor,类型 System.Runtime.CompilerServices.ExtensionAtribute 找不到自定义 attr 构造函数图像。
然后我尝试了 MoMa 工具并显示了这些错误
调用引发 NotImplementedException 的方法方法
void .ctor () void DataContext..ctor (string, MappingSource)
void .ctor (string) void DataContext..ctor (string, MappingSource)
void .ctor (string, MappingSource) void DataContext..ctor (string, MappingSource)
void LoadAll () void DataContext.set_CommandTimeout (int)
这是我的代码
public SwitchDataDataContext(string connection) :
base(connection, mappingSource)
{
OnCreated();
}
所以,我可以在没有超时的情况下生活,但我认为其他人是连接字符串的构造函数。
如果这很重要,我将在 VS 4.5.2 中编译,然后将其带到 Debian。
除了重新编码到 ado.net 之外的任何想法 谢谢 安德烈
【问题讨论】:
-
Mono 2.8 已过时,您现在应该使用 3.*。 mono-project.com/download
-
有没有办法查看当前版本?我刚刚安装了它。我以为是2.8可能是错的。
-
看来你是对的。有趣的是我昨天从他们的网页上下载了它。我仍然想知道如何验证版本。 tks
-
使用
mono --version;) -
你们都知道如何解决我的新问题吗? stackoverflow.com/questions/25630540/…