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

Upgrading Lodash from 3.x to 4.x

C++/CLI: Trigger events from C++ native code and handle them in Managed code, Part I

Traduciendo un custom control de Windows Forms de VB.NET a C#