Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

Console (i.e. Command Line) exe and WinForms exe in same VS Project?

$
0
0

I am trying to develop an app which will have a GUI and command line interface.  The only way I can think of to do this (without duplicating a lot of code) is to put the meat of the application into a dll and to have a WinForms exe and a command line exe which both do not too much more than call subroutines in the dll. 

If possible I'd like to keep all pieces in one Project. Or at least in one Solution. 

If it might matter I am using VS Express 2012.

The only way I can see to add a console app is to use VS File > New Project.  But then I am not sure what to specify for Location and Solution.  Can I set the location to the same directory that currently contains the GUI and DLL pieces and uncheck "Create directory for solution"?  But why does the dialog have a "Solution name"?  I was hoping that VS File > New Project would create a new project in the existing solution.

Thanks,  Bob


Viewing all articles
Browse latest Browse all 21115

Trending Articles