What project did you create? It looks like you wanted to create a class library, but accidentally created an executable assembly. Make sure that you are actually creating an assembly of the class library (that is, ".dll" and not ".exe").
If you are not using Visual Studio and compile your code using csc.exe , make sure you specify /target:library to compile the code into a library.
Andrew Hare
source share