'Visual Studio exports everytime a Setup if i puplish my program. how to change? c#
Is there a way to compile my own program without having Visual Studio create a setup file? Would like a single .exe file. i dont understand why my program have to be installed. It's annoying after every update, first deinstall the old one, and I also don't think it's neat
This is what i got after puplish.
i saw it on many other projects from other people, they always had a single .exe.
MY IDE
Solution 1:[1]
Environment:Vs 2019 and above
Project Framework:.Net Core 3.1 and above
3.1 Console Application:
- Click Folder and Next:
- Click Folder and Next:
- Click Finish:
- Show all settings->self-contained->win-x64->produce a single file:
- That's the exe.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Jiale Xue - MSFT |










