Mono 调试System.TypeLoadException

Mono 调试System.TypeLoadException,mono,nant,boo,Mono,Nant,Boo,我试图在mono-4.0 Nant配置文件上编译Boo,但出现以下错误,调试时遇到问题 booi: Invalid type Boo.Lang.Compiler.CompilerParameters for instance field Boo.Lang.Compiler.CompilerContext:_parameters Missing method .ctor in assembly /Users/tristanz/Projects/boo/build/Boo.Lang.Compile

我试图在mono-4.0 Nant配置文件上编译Boo,但出现以下错误,调试时遇到问题

booi:

Invalid type Boo.Lang.Compiler.CompilerParameters for instance field Boo.Lang.Compiler.CompilerContext:_parameters
Missing method .ctor in assembly /Users/tristanz/Projects/boo/build/Boo.Lang.Compiler.dll, type System.Security.SecurityRulesAttribute
Can't find custom attr constructor image: /Users/tristanz/Projects/boo/build/Boo.Lang.Compiler.dll mtoken: 0x0a00097b

BUILD FAILED - 0 non-fatal error(s), 2 warning(s)

INTERNAL ERROR

System.TypeLoadException: Could not load type 'System.Security.SecurityRulesAttribute' from assembly 'Boo.Lang.Compiler'.
  at Boo.NAnt.BooTask.ExecuteTask () [0x00000] in <filename unknown>:0 
  at NAnt.Core.Task.Execute () [0x00000] in <filename unknown>:0
booi:
实例字段Boo.Lang.Compiler.CompilerParameters的类型无效Boo.Lang.Compiler.CompilerContext:\u参数
assembly/Users/tristanz/Projects/boo/build/boo.Lang.Compiler.dll中缺少方法.ctor,键入System.Security.SecurityRulesAttribute
找不到自定义attr构造函数映像:/Users/tristanz/Projects/boo/build/boo.Lang.Compiler.dll mtoken:0x0a00097b
生成失败-0个非致命错误,2个警告
内部错误
System.TypeLoadException:无法从程序集“Boo.Lang.Compiler”加载类型“System.Security.SecurityRulesAttribute”。
在:0中的Boo.NAnt.BooTask.ExecuteTask()[0x00000]处
在:0中的NAnt.Core.Task.Execute()[0x00000]处

任何想法都将不胜感激。

问题是NAnt本身必须在4以下运行。为了使引导任务正常工作,mono--runtime=v4.0是解决方案