I got this suspicious error when compiling with Microsoft .NET 3.5 SP 1 set as a prerequisite in Visual Studio 2008 SP 1.
The value of the 'PublicKey' attribute in '.NET Framework 3.5 SP1' does not match that of file 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\DotNetFX35SP1\dotNetFX30\XPSEPSC-x86-en-US.exe'
The bootstrapper itself was extracted from DotNetFX35SP1.exe because there weren’t any bootstrapper for .net 3.5 sp1 in my office pc previously.
Apparently, I need to change the public key and add package name as described here. Thanks to my colleague for pointing this.