Yes, you can change the type of properties Project | Application | Output to a Windows application, a console application, or a class library, so choosing Class Library will output the DLL.
I'm trying to figure out why you want to do this though?
source share