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:

  1. Go to %ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32.
  2. Open Microsoft.Cpp.Win32.targets with a text editor (this might require administrator rights).
  3. Search for <Target Name="LinkEmbedManifest".
  4. Inside that tag, in the DelaySign attribute value, change % to $, and Link.DelaySign to LinkDelaySign (delete the period).
  5. Do the same for the KeyFile attribute (don't forget to change Link.KeyFile to LinkKeyFile).

Comments

Popular posts from this blog

VB.NET: Raise base class events from a derived class

Apache Kafka - I - High level architecture and concepts

Upgrading Lodash from 3.x to 4.x