John1990
John1990

Reputation: 29

How to make a portable program in C# Visual Studio 2015?

Portable means the program runs immediately and doesn't ask to be added in "Programs and Features" of Windows.

I only know in Visual Studio C# 2015 to press Build->Publish, and publish the program to a setup.exe file with a folder near, and when I run setup.exe it adds itself to Programs and Features...

The program is a Windows Forms Application program.

Upvotes: 1

Views: 5893

Answers (2)

visitorfromthepast
visitorfromthepast

Reputation: 1

It should work too if you just give the .exe file from the release folder to the user.

Upvotes: 0

Kip Morgan
Kip Morgan

Reputation: 738

Change the build configuration to: Release

Build the solution.

Zip the files in the bin\Release folder.

Unzip on another PC.

Run the exe file.

Upvotes: 6

Related Questions