2011-07-09 134 views
0

我試圖在mono-4.0 Nant配置文件上編譯Boo,並且出現以下錯誤,我在調試時遇到了麻煩。調試System.TypeLoadException

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 

任何想法將不勝感激。

回答

2

問題是NAnt本身必須運行在4以下才能使BooTask正確工作,所以mono --runtime = v4.0就是修復。

相關問題