2025 Update
Go to Project in the top menu bar.
Click Add Resource.
Select Icon.
A placeholder icon named icon1.ico will be created next to your .vcxproj file. Simply replace it with your own icon (keeping the same file name) and rebuild the project.