user18010149
user18010149

Reputation:

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.

enter image description here

MY IDE

enter image description here

enter image description here

enter image description here

Upvotes: 0

Views: 63

Answers (1)

Jiale Xue - MSFT
Jiale Xue - MSFT

Reputation: 3670

Environment:Vs 2019 and above

Project Framework:.Net Core 3.1 and above

3.1 Console Application:

enter image description here

  1. Click Folder and Next:

enter image description here

  1. Click Folder and Next:

enter image description here

  1. Click Finish:

enter image description here

  1. Show all settings->self-contained->win-x64->produce a single file:

enter image description here

  1. That's the exe.

enter image description here

Upvotes: 1

Related Questions