19

I am learning in the visual web developer c#, entity framework, and webservices.
I want to be able to run the entity framework for example with out building it a gui, or run a browser. So condole application with reference can do the job. Can I add a console application to my Visual Web developer solution?

Thanks

SexyMF
  • 10,657
  • 33
  • 102
  • 206

2 Answers2

41

FWIW. In VWD 2010, you can create a library project, then go under project properties and change the project to Console application, and create a method "public static void Main(String[] args) {}", and it will build a console app for you.

Levin Magruder
  • 1,905
  • 18
  • 26
  • 1
    Thank you! This is a great tip. It looks like there are plenty of people who don't know you can do this. I think you can do the same with creating Win32 GUI apps as well. – MKANET Nov 29 '13 at 18:33
  • 2
    You're welcome - glad it helped. I don't even remember what VWD *is*, and pretty much all my SO reputation for 2013 comes off this question. – Levin Magruder Dec 01 '13 at 23:15
  • this was great tip i was about to install VS but found this answer and it was great help thumbs up :)) – Sikander Mar 15 '14 at 18:04
  • According to the book I'm working from (geared towards VS2013), there should be an App.config file, but there isn't one to be seen. Is this anything I need to worry about? – Stewart Feb 04 '15 at 11:15
0

No. You will need Visual C# Express. VWD only works with web projects. Visual C# Express should have this project template.

Daniel A. White
  • 187,200
  • 47
  • 362
  • 445