当我尝试将System.Linq
命名空间导入 Boo 编译器时,出现此错误:
Boo.Lang.Compiler.CompilerError:
未找到命名空间“System.Linq”,也许您忘记添加程序集引用?
我使用“Rhino.DSL.dll”,我的 DSL 引擎代码在这里:
public class MyDslEngine : DslEngine
{
protected override void CustomizeCompiler(BooCompiler compiler, CompilerPipeline pipeline, string[] urls)
{
pipeline.Insert(1, new AnonymousBaseClassCompilerStep(typeof(DslBase), "Prepare",
"System.Linq",
"Azarakhsh.Framework.Repository" //it's my repository framework
));
pipeline.Insert(2, new UseSymbolsStep());
pipeline.Insert(3, new RunScriptCompilerStep());
}
}