If this is a managed application, You can right click on the project and go to properties. In theapplication properties there is an output type. You can choose Windows Application or Console Application which will build the project as an exe. There is also a class library option which will build the project as a dll.