Is there a way for Visual Studios 2008 to create a .com file instead of .exe for a console project? Right now I have to do this:
if $(ConfigurationName) == Debug goto :debug
:release
copy ProjectNameConsole.exe ProjectName.com
goto :exit
:debug
:exit
And then for the installer I have to add the copied .com object instead of adding the project output. Using this method, I can't debug the installer unless I create the .com object for debug, and update the installer to copy that file instead of the release version.
If you are wonder, we have an application that has both a GUI and console version. The .com version of the executable acts as the console version of the application. If the exe and the com file have the same name, the user will automatically use the com file in the console window when they call "ProjectName".
UPDATE: I guess I was a little misleading with my question. I want to create an windows exe, but I was hoping to have the project output to name the object "ProjectName.com" instead of "ProjectName.exe". Just as shf301 pointed out, I am basically doing what Visual Studios is doing.