Visual Web developer - console application , how to
Asked Answered
B

2

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

Bloom answered 14/9, 2011 at 20:26 Comment(0)
K
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.

Kuban answered 16/2, 2012 at 5:15 Comment(4)
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.Melodiemelodion
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.Kuban
this was great tip i was about to install VS but found this answer and it was great help thumbs up :))Tsang
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?Largeminded
P
0

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

Pili answered 14/9, 2011 at 20:27 Comment(3)
But inside Visual C# Express I cant create webservice.... how can I solve this? thanksBloom
To add a web reference, right click your project and choose add web reference.Pili
I have only add webservice reference, but i want to add the entire project as a reference, thanksBloom

© 2022 - 2024 — McMap. All rights reserved.