Phil Atkin's reply and link is the way to fix this bug.
Microsoft finally got around to addressing it for Visual Studio 2010 but they never released a service pack fix.
Go to this link for the MS explanation and multiple ways to fix it.
http://blogs.msdn.com/b/vcblog/archive/2011/03/11/10140139.aspx
It worked for me. Thanks Phil. (I'd up vote you, but I'm still a newbie.)
Edit for Mzedeler:
Here is the most relevant info from the link that most people will be able to use. It's skips the history and multi-project implications. (Go to the link to see that stuff.)
First: Fix the typo in the build process:
- In Windows 7: Go to Start->All Programs->Accessories
- Right click on Command Prompt icon and select "Run as Administrator" from the drop list.
- Type in: cd %ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32
- Type in: notepad Microsoft.Cpp.Win32.targets
- Find the “LinkEmbedManifest” target (search for: Target Name="LinkEmbedManifest")
- Under the above target and in the task “< Link” perform the following steps.
- Change property DelaySign
- From : DelaySign ="%(Link.DelaySign)"
- To : DelaySign ="$(LinkDelaySign)"
- Verify you changed % to $ AND removed the period between Link and Delay.)
- Change property KeyFile
- From : KeyFile ="%(Link.KeyFile)"
- To: KeyFile ="$(LinkKeyFile)"
- Verify you changed % to $ AND removed the period between Link and Key.)
- Save the changes and exit notepad.
- Exit the Command Window by typing in: Exit
Redefine the “Key File” and “Delay Sign” properties used for signing your project:
- Get into MS Visual Studio 2010 and open your project.
- Right click on your "project" to bring up the properties page.
- Go to Configuration Properties->Linker->Advanced
- Overwrite the property “Key File” with your original key file. (for e.g. myfile.snk)
- Exit the Properties Page.
- Save and compile your program.
These steps worked for my project. For more details, go to the link above that Phil provided.
End Edit