Open zubialevich opened 3 years ago
Not sure what is exactly happening but there is one suspicious detail in your description. MonoEvaluator is not available for all versions of CS-Script.Core and for the latest CS-Script (.NET5).
What version are you trying to use.
As a side note you should use CS-Script which has replaced now CS-Script.Core.
I am using CS-Script latest version on .net5 project.
I thought that in CS-Script Evaluator goes for MonoEvaluator, or it is not true anymore?
The only think I can think where I get Microsoft.AspNetCore.App is that one of nugget packages I use has this as dependency:
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup> ```
When CS-Script was migrated to .NET Core (and .NET 5 is essentially .NET Core) I had to drop MonoEvaluator since .NET no longer supports Mono. Thus indeed it's not the case any more.
As for "CSScript.Evaluator" it points to the evaluator that is configured to be the evaluator of your choice:
CSScript.EvaluatorConfig.Engine = EvaluatorEngine.CodeDom;
now CSScript.Evaluator is a CodeDomEvaluator
As for the random failures, can you please produce a "hello world" style test case that resamples your solution so I can run it repeatably and hopefully reproduce the problem.
Hello!
I am trying CodeDom evaluator but randomly I am getting this error: