using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using Roslyn.Scripting; using Roslyn.Scripting.CSharp; namespace RoslynTest { class Program { static void Main(string[] args) { var engine = new ScriptEngine(); var session = engine.CreateSession(); string text = System.IO.File.ReadAllText(@"C:\test.txt"); session.Execute(text); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)