Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create a Setup file for C# console application

I have developed a console application in C#. I need to create an EXE file now. By copy and pasting that EXE file to another machines, it should work with the actual process what which i done in my machine. I have searched for it and mostly there was solutions for Win apps. I need to do it in my console app.

Steps i have done yet: 1. Created a console app. 2. Right clicked on Solution which is placed in solution explorer -> Add -> New project -> Other Project Types -> Visual Studio Installer -> Given name and chooses the location and Clicked "OK". 3. File System wizard been showing now.

From here I need your advice to add the assembly.

like image 413
Venil Avatar asked Feb 16 '23 06:02

Venil


1 Answers

There are 2 Ways to Do This... I just did this 20 Min Ago :)

  • Method 1 : Right Click on Your Project, Publish, Choose Location For The installer, Run it
  • Method 2 : As Previous people mentioned your bin/release folder will contain .exe files which need to be copied and Installed, i prefer the 1st method

Just a Side Note. Make Sure the Output Type Is of Console Type (Right Click on project... Output type...), Some windows applications give Problems when Publishing and Installing them

like image 166
Desmond Smith Avatar answered Feb 17 '23 20:02

Desmond Smith