Posts

Showing posts from April, 2013

Visual Studio 2010 SP1 and C++/CLI strong naming bug

Spanish version / Versión en Español 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).

Visual Studio 2010 SP1 y strong naming para C++/CLI

Versión en inglés / English version Este Visual tiene un bug que rompe la firma de assemblies C++/CLI con strong naming. Dicho bug está documentado y tiene una solución que requiere tocar un archivo .Targets del Visual Studio. Los detalles aquí . Por si el link se muere, copio los pasos a seguir: Ir a %ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32. Abrir Microsoft.Cpp.Win32.targets con un editor de texto (esto puede requerir derechos de administrador). Buscar el texto <Target Name="LinkEmbedManifest" . Dentro de ese tag, en el valor de la property DelaySign , cambiar % por $, y Link.DelaySign por LinkDelaySign (borrar el punto). Lo mismo para la property KeyFile (no olvidar borrar el punto para que Link.KeyFile pase a ser LinkKeyFile).