2011-07-09 17 views
0

私はmono-4.0 NantプロファイルでBooをコンパイルしようとしていますが、デバッグに問題がある次のエラーが発生しています。Debugging 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自体がBooTaskが正常に動作するためには4より下で実行する必要があるため、mono --runtime = v4.0が修正されていることです。

関連する問題