Repository navigation
Strong-name sign assemblies - #66
Merged
madelson merged 2 commits intoMar 22, 2020
Merged
Conversation
madelson
reviewed
Mar 19, 2020
| <NoWarn>1591</NoWarn> | ||
| <SignAssembly>true</SignAssembly> | ||
| <AssemblyOriginatorKeyFile>SampleCommand.snk</AssemblyOriginatorKeyFile> | ||
| </PropertyGroup> |
Owner
There was a problem hiding this comment.
Why does SampleCommand need to be signed? I'd think that we could get away with just signing the non-test binaries.
| <TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
| <NoWarn>1591</NoWarn> | ||
| <SignAssembly>true</SignAssembly> | ||
| <AssemblyOriginatorKeyFile>MedallionShell.Tests.snk</AssemblyOriginatorKeyFile> |
Owner
There was a problem hiding this comment.
Why does the tests project need to be signed?
| <GenerateDocumentationFile>True</GenerateDocumentationFile> | ||
| <CodeAnalysisRuleSet>..\stylecop.analyzers.ruleset</CodeAnalysisRuleSet> | ||
| <SignAssembly>true</SignAssembly> | ||
| <AssemblyOriginatorKeyFile>MedallionShell.ProcessSignaler.snk</AssemblyOriginatorKeyFile> |
Owner
There was a problem hiding this comment.
Is it necessary to use distinct snk files for each assembly? I feel like with MSFT assemblies I always see the same public key used (in binding redirects), which is kind of nice for knowing you've copied it correctly.
| using System.Runtime.CompilerServices; | ||
|
|
||
| [assembly: InternalsVisibleTo("MedallionShell.Tests")] | ||
| [assembly: InternalsVisibleTo("MedallionShell.Tests, PublicKey=00240000048000009400000006020000002400005253413100040000010001008d4e301e51cf90722627e9a77bdce4bf73c8d4d33d7ebe1058050002627cc9a68388dfe94aa944e98a928b61dd160eb31aca338033729248ecec0955bf0e02e12d7cfb90534ed602e1ec78905ccd0062cdcc23b4ae2017a98849a72bb3c7e07e0bebcf31a03df79c01fca07486e16133b5d7699781b7910e5f353e2601f7cfa8")] |
Owner
There was a problem hiding this comment.
- For my understanding, how would one come up with this public key value?
- In binding redirects, it uses a much shorter value for the key. Is that available here?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checking in private key files to strong-name sign all assemblies. For more information on the reasoning for strong-naming assemblies, see this article.
This submission is in response to Issue #65.