Open Visual Studio, click Extensions-"Manage Extensions, search for the following extensions, download and install them, and restart Visual Studio.
After restarting Visual Studio, right click on the solution - "Add -" New Item
Search for setup on the page
In the interface, click as shown in the figure below, we add the files that need to be added, that is, the files that the program needs to use
Click add again to select the project output
Finally find the project and click Regenerate
Find the path of the xx.exe file, the next step is to install
Fool-style installation, then open the program to see the effect: