question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Strong Name signing C++/CLI assemblies

See original GitHub issue

I’m trying to puzzle out how to enable strong-name signing in C++/CLI projects.

The tentative approach I’m using looks like this (assume that ManagedCxx is defined appropriately):

<ItemDefinitionGroup>
  <Link>
        <AdditionalOptions Condition="'$(ManagedCxx)'=='true'">%(AdditionalOptions) /keyfile:$(AssemblyOriginatorKeyFile) /delaysign</AdditionalOptions>
  <Link>
</ItemDefinitionGroup>
  • Is this a reasonable approach?
  • Can I depend on AssemblyOriginatorKeyFile property to exist and remain supported in the future as the way to discover the path to the key file?

This all assumes, of course, that signtool will eventually re-sign these same binaries again after it has been packaged.

cc @stevenbrix, @miguep, @rladuca, @danzil

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
markwilkiecommented, Feb 1, 2019

@JohnTortugo - has this been sorted already?

0reactions
JohnTortugocommented, Mar 5, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to: Sign an assembly with a strong name | ...
This article shows you how to sign a .NET assembly with a strong name by using the Signing tab, the Assembly Linker, assembly...
Read more >
Strong Name Assemblies (Assembly Signing) (C++/CLI)
This topic discusses how you can sign your assembly, often referred to as giving your assembly a strong name.
Read more >
Should each project being signed with a separate Strong ...
The purpose of strong named assemblies is to be able to differentiate among versions of the same assembly, not to determine the creator...
Read more >
Sign strong name assemblies with SignTool
A strong name consists of the assembly's simple text name, version number, and culture information (if provided), a public key and, a digital...
Read more >
Strong named assemblies — To sign or not to sign?
Strong named assembly can only reference other strong named assemblies ... According to Microsoft, you should strong sign your dlls [link].
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found