Marco van Poortvliet
Marco van Poortvliet

Reputation: 23

How to use ScriptEngine in C#

I have installed Microsoft.CodeAnalysis.CSharp.Scripting via NU-get. When I try

var engine = new ScriptEngine();

it shows me the error: The type or namespace 'ScripEngine' could not be found.

I just can't figure out what's wrong, how do I use it?

Upvotes: 1

Views: 6042

Answers (1)

SLaks
SLaks

Reputation: 887469

No such class exists.

Instead, use CSharpScript.Create()

Upvotes: 4

Related Questions