Build with the following command-line switches: csc /t:library DllTestServer.cs
public class DllTestServer { public static void Foo() { System.Console.WriteLine("DllTestServer.Foo (DllTestServer.DLL)"); } }