Strong-name sign assemblies#289
Conversation
Sergio0694
left a comment
There was a problem hiding this comment.
Can you also double check with a package from our PR feed to ensure it solves the issue for you? 🙂
|
See my discussion inside the original issue. You cannot use |
|
Ok but then I'm confused as to how can the projects in the WCT use |
|
Uh... Why is the company ".NET Foundation" though. It should be "Microsoft". |
That would be handled here: I can open another issue for that one |
|
Oh, no yeah I know where that comes from in the .props, I meant that as "why did we set that up this way" 😄 |
|
Looking at the v7.1.2 tag of CommunityToolkit/WindowsCommunityToolkit, none of the netframework-supported projects ever used I'm not well versed in UWP and how strong-naming works there. As I said in the issue discussion, I checked both the roslyn and runtime (coreclr subfolder) repos and everything is signed there. |
I honestly don't remember... I don't remember that the tests had to be signed. If the tests were signed, then yes, everything they reference should be signed, but not the other way around, right? |
Not always. In one case, the You can try to build this branch with this instead but you will encounter a few CS1726 build errors. <PropertyGroup Condition=" '$(IsCoreProject)' == 'true' ">
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>$(RepositoryDirectory)toolkit.snk</AssemblyOriginatorKeyFile>
</PropertyGroup> |
Sergio0694
left a comment
There was a problem hiding this comment.
Minor nit, other than that LGTM! ![]()
Thanks!
0af86ce to
376a2e2
Compare
|
PSA This is okay as it is but I found this -> dotnet/sdk#3439 FYI We can now add <!-- Common.props (or in Azure Pipelines) -->
<PublicKey>002400000480000094000000060200000024000052534131000400000100010041753AF735AE6140C9508567666C51C6AB929806ADB0D210694B30AB142A060237BC741F9682E7D8D4310364B4BBA4EE89CC9D3D5CE7E5583587E8EA44DCA09977996582875E71FB54FA7B170798D853D5D8010B07219633BDB761D01AC924DA44576D6180CDCEAE537973982BB461C541541D58417A3794E34F45E6F2D129E2</PublicKey>
<!-- CommunityToolkit.Mvvm -->
<InternalVisibleTo Include="CommunityToolkit.Mvvm.Internals.UnitTests" PublicKey="$(PublicKey)"/>
<!-- CommunityToolkit.HighPerformance -->
<InternalVisibleTo Include="CommunityToolkit.HighPerformance.UnitTests" PublicKey="$(PublicKey)"/> |
|
I'm aware of the project property. I'm keeping it simple and not modifying more than what is necessary to fix the opened issue. Simple PRs are less demanding to review. |
|
Thank you @inkahootz! 😄 |

Closes #254
Enable strong-name signing for all assemblies. This fixes a regression introduced in the repo migration. v7 was strong-named signed with the key that existed in the root of the repo.
PR Checklist
Other information
N/A