Azul_Echo
Azul_Echo

Reputation: 151

Using a Windows Forms Application out of Visual Studio

I am just wondering if there is a somewhat simple way to use a Windows Forms Application program outside of Visual Studios. If so could someone elaborate on it?

Upvotes: 2

Views: 614

Answers (2)

Brian
Brian

Reputation: 5119

Yes. The steps to do this can be found here.

In a nutshell:

  1. Add a new install project to your solution.
  2. Add targets from all of the projects you want to be installed.
  3. Configure pre-requisites and choose the location from where missing components must be installed (if applicable).
  4. Configure your installer settings - company name, version...
  5. Build the project and you are good-to-go.
  6. Run the installer (setup.exe) or right-click the setup project in the solution explorer and select "Install", then run it from the install folder like any other app. (thank you, retailcoder)

It can be as simple or complex as you would like it to be.

Upvotes: 1

Jaycee
Jaycee

Reputation: 3118

When you have compiled the files simply navigate to the

Debug/Release folder

and run the executable. Any dependencies can be configured to be output to that folder in

Project properties (Build Tab, Output path)

You can also set references to Copy local in the Property Window within Visual Studio, which ensures references are copied to Debug/Release folder depending on which configuration you have Visual studio in.

Or build an installer as Brian describes.

Upvotes: 2

Related Questions