How to insert references to use the Scriptengine class?

Asked

Viewed 83 times

4

On the basis of the question Compile string as code includes in my project the class ScriptEngine, however, it is not being found in the references:

using Microsoft.CodeAnalysis.Scripting;
using Microsoft.CodeAnalysis.Scripting.CSharp; //Nesta

Making the installation through the Manage Nuget Packages for Solution I searched for Microsoft.CodeAnalysis.Scripting and installed it, but did not let install the next (Microsoft.CodeAnalysis.Scripting.CSharp) by incompatibility. Incompatibilidade

I can install the reference Microsoft.CodeAnalysis.Scripting.CSharp by console with commands (in order on console):

PM> Install-Package Microsoft.DiaSymReader.Native
PM> Install-Package Microsoft.CodeAnalysis.Scripting.Csharp -Pre

But this way, the ScriptEngine is not being found.

What should I do to use the ScriptEngine?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.