How to Add a Reference to a C# Script
问题 I am using the CS-Script library to execute dynamic code. Rather than using it as a script engine, I want to use it to plug functionality into an application on the fly. Here's the hosting code... using System; using CSScriptLibrary; using System.Reflection; using System.IO; namespace CSScriptTester { class Program { static void Main(string[] args) { // http://www.csscript.net/ Console.WriteLine("Running Script."); CSScript.Evaluator.ReferenceAssembly(Assembly.GetAssembly(typeof(System