How can I import the System.Linq namespace to Boo?

Posted by OmiD Rezaei on Stack Overflow See other posts from Stack Overflow or by OmiD Rezaei
Published on 2011-01-03T08:39:04Z Indexed on 2011/01/03 8:53 UTC
Read the original article Hit count: 307

Filed under:
|
|

When I try to import the System.Linq namespace to Boo compiler, I get this error:

Boo.Lang.Compiler.CompilerError:

Namespace 'System.Linq' not found, maybe you forgot to add an assembly reference?

I use "Rhino.DSL.dll" and my DSL engine code is here:

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());
    }
}

© Stack Overflow or respective owner

Related posts about c#

Related posts about namespaces