1. In the resource folder of the project, find the default ico icon file of vs and remove it (you can also not remove the obsessive-compulsive disorder)
2. Right-click the project folder, click Add , select Resources® , select Icon , click Import , and add your own ico icon to the project
3. After the above operations, click the file with the suffix rc, and you will find the ico icon resource we added and the default ico resource left before (still delete it). You can right-click the file, select properties, and modify the ID of the file to the name we want
.