Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can I export a C# application from Visual Studio 2012 to run in other computers?

I just made my first C# application in Visual Studio 2012 and I want to export it in some way so other people could use it in they computers (including computers without Visual Studio 2012). How can I do it? I'm new at C# and I couldn't find anything that I could understand. Can someone explain or indicate some site with a good (and maybe didactic) explanation on how it works? I have only made C/C++ programs by now, and they I just needed the .exe file, but, based on what I could find, I need something else to send a C# program to others to use. Sory for the bad English and thanks for those who help.

like image 485
Erik Scheffer Avatar asked Jun 21 '13 13:06

Erik Scheffer


2 Answers

Right-click the project in VS 2012, and choose Publish... from the context menu. Publishing to a file lets you create an installer:

  • Choose a location in the file system to which you would like to save the installer
  • Click [Finish]
  • Wait for the publishing operation to complete

A Setup.exe installer file will be created at the location that you have selected in the first step of the publish wizard. Share the installer with the people to whom you would like to give your application.

like image 146
Sergey Kalinichenko Avatar answered Sep 20 '22 18:09

Sergey Kalinichenko


After building your project, you will find an EXE file in bin\(Debug or Release)

like image 34
SLaks Avatar answered Sep 20 '22 18:09

SLaks