In your project's property in Application tab you have to see:
Output type: Windows Application.
With this configuration after compilation you will get EXE
file. Instead, according to the error message you get, your application is configured like Class Library, so output is DLL
.