Skip to content

Error compiling with CodeDom on .netcore 3.1 (2.0.0) #23

@tiagosilvacosta

Description

@tiagosilvacosta

HI,

I´m trying the 2.0.0 version and I´m having some trouble compiling simple code with codedom. (Because I would like to use Caching) Using Roslyn, everything works. But when I change do CodeDom I get a "BUILD: error : Unknown compiler error".

I can see the sources files being created at %temp%\CSSCRIPT and also the cache dir.

I´m runining on Windows, .netcore 3.1 console app and using one sample code:

        dynamic script = CSScript.CodeDomEvaluator
                                 .LoadMethod(@"public object func()
                                               {
                                                   // return (0,5);   // C# latest syntax
                                                   return new[]{0,5}; // C# 5 syntax
                                               }");

Can you help me finding where is the problem? Best regards!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions