Visual Studio 2010 SP1 and C++/CLI strong naming bug
This particular Visual Studio version has a bug which breaks strong naming signing for C++/CLI assemblies. Said bug is documented and has a workaround which requires editing a .Targets file. Details here.
In case the link dies, I'll copy the steps below:
- Go to %ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32.
- Open Microsoft.Cpp.Win32.targets with a text editor (this might require administrator rights).
- Search for <Target Name="LinkEmbedManifest".
- Inside that tag, in the DelaySign attribute value, change % to $, and Link.DelaySign to LinkDelaySign (delete the period).
- Do the same for the KeyFile attribute (don't forget to change Link.KeyFile to LinkKeyFile).
Comments
Post a Comment