I'm attaching a template you can use that always works for me, and it uses a resource file manifest.
You will need to go into the \res folder and change the names of the .manifest and .rc files. Where it says MyApp.manifest and MyApp.rc, change them to the name of your EXE file.