Build with the following command-line switches: csc /t:library DllTestServer.cs

image_pdfimage_print
   
 
public class DllTestServer
{
    public static void Foo()
    {
        System.Console.WriteLine("DllTestServer.Foo (DllTestServer.DLL)");
    }
}