Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Web developer - console application , how to

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

like image 591
SexyMF Avatar asked Sep 14 '11 20:09

SexyMF


People also ask

How do I create a console application in Visual Studio?

Create the appOn the start page, choose Create a new project. On the Create a new project page, enter console in the search box. Next, choose C# or Visual Basic from the language list, and then choose All platforms from the platform list. Choose the Console Application template, and then choose Next.

How do I run a Vscode console application?

Navigate to your Console Project and open it in Visual Studio Code or you can simply type “code .” if your already inside the directory that you want opened. You can run the app by pressing CMD-Shift-P and selecting “Run”. This will open a terminal window that displays “Hello World”.

How do I use console application?

The first step is to create a new application. Open a command prompt and create a new directory for your application. Make that the current directory. Type the command dotnet new console at the command prompt.


1 Answers

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.

like image 184
Levin Magruder Avatar answered Oct 16 '22 15:10

Levin Magruder