Saturday, August 31, 2013

Signing C++\CLI assemblies in VS 2010

I lost a lot of valuable time because of this problem, so I thought to share the solution that I got as a combination of other solutions posted by people who are more expert than me in this field.

the answer was adding the following to the project file:
<Project DefaultTargets="Build" ToolsVersion="4.0" 
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <!-- snip -->
    <ItemDefinitionGroup>
      <Link>
        <KeyFile>$(LinkKeyFile)</KeyFile>
      </Link>
    </ItemDefinitionGroup>
</Project>

Hope this saves some time for some of you.

No comments:

Post a Comment