简体   繁体   中英

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.

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.

如果您只是将发布文件夹中的 .exe 文件提供给用户,它也应该可以工作。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM