我试图在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任何想法都将不胜感激。
发布于 2011-07-09 09:33:56
问题是运行时本身必须在4.下运行,才能使BooTask正常工作,因此mono -- NAnt =v4.0是修复方法。
https://stackoverflow.com/questions/6631827
复制相似问题