1

I know that my question is wide and I am seeking for hints and keywords that would push my research forward. I have checked the following links Embedding a DOS console in a windows form and How to embed a Console application inside a Winforms application, but all I can find is embedding console to Winform.

My objective is to first run the console which imitates the insert sql functionality. Then or synchronously, the Web Application should also start. So I have two applications in the same solution a C#.net Console App and a Web App.

Is this possible? Help please.

Community
  • 1
  • 1
user2217303
  • 356
  • 4
  • 16

1 Answers1

3

You can add a Console application in the same solution as your ASP.NET Web Application project, and these two can use the same class libraries. For local testing through Visual Studio you can then add both these as Startup projects.

anderbakk
  • 311
  • 3
  • 6