0

我正在尝试在 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

任何想法将不胜感激。

4

1 回答 1

2

问题是 NAnt 本身必须在 4. 下运行才能使 BooTask 正常工作,因此 mono --runtime=v4.0 是解决方法。

于 2011-07-09T01:33:55.687 回答