Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deploy a console application

I have a console application, that when I run (from within vs.net) it takes a while as it is a long running process.

I want to continue coding in vs.net, and maybe even spawn multiple instances of the console application.

How to best deploy this on my desktop cmputer?

Is this a good approach:

create a folder: /myConsole/ then subfolders for each instance.

Do I just grab all fines in the /debug folder or are there other dependancies?

like image 601
mrblah Avatar asked Dec 22 '09 21:12

mrblah


People also ask

How do I deploy a console app in Azure?

Right-click the console app project in Solution Explorer, and then select Publish as Azure WebJob. The Add Azure WebJob dialog box appears, with the project selected in the Project name box. Complete the Add Azure WebJob dialog box, and then select OK. The Publish Web wizard appears.


2 Answers

If you run without attaching the debugger you can continue coding while the program runs.

Debug Menu | Start without debugging, or Ctrl+F5

Note: using this method, you can compile the modified code, but cannot run it since the .exe output file will be in use. I'm not sure if that's a problem for you.

like image 59
Jon Seigel Avatar answered Oct 03 '22 09:10

Jon Seigel


One way I've done it before is to create a release build from VS. Then open as many command prompts as you need on the release folder and then run it from there. Then I change back to debug build and continue coding. This lets me run the separate instances and also debug if need be and it's all as simple as changing the type of build in VS.

like image 28
jvilalta Avatar answered Oct 03 '22 09:10

jvilalta