Skip to content

Include AspNetCore.snk in StrongNameSignInfo#16106

Merged
mmitche merged 3 commits intomainfrom
copilot/fix-16105
Sep 5, 2025
Merged

Include AspNetCore.snk in StrongNameSignInfo#16106
mmitche merged 3 commits intomainfrom
copilot/fix-16105

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Sep 5, 2025

This PR adds the AspNetCore strong name key to the default signing configuration in Sign.props, allowing assemblies signed with AspNetCore.snk to be automatically configured for signing without requiring users to manually add the key to their StrongNameSignInfo.

Changes Made

Added a new StrongNameSignInfo entry in src/Microsoft.DotNet.Arcade.Sdk/tools/Sign.props:

<StrongNameSignInfo Include="$(MSBuildThisFileDirectory)snk\AspNetCore.snk" PublicKeyToken="adb9793829ddae60" CertificateName="Microsoft400" Condition="'$(FullAssemblySigningSupported)' != 'false'" />

The entry follows the same pattern as the existing Open.snk entry and uses:

  • Path: $(MSBuildThisFileDirectory)snk\AspNetCore.snk (relative to the tools directory)
  • Public Key Token: adb9793829ddae60 (verified against existing references in the codebase)
  • Certificate: Microsoft400 (consistent with other entries)
  • Condition: Same condition as Open.snk to respect full assembly signing support

Validation

The public key token was verified by:

  • Cross-referencing with the existing StrongName.targets file in the same repository
  • Building test assemblies with the AspNetCore.snk key and confirming the runtime token matches
  • Checking consistency with existing test references in SignToolTests.cs

This change enables repos using the AspNetCore strong name key to leverage the default Arcade signing infrastructure without additional configuration.

Fixes #16105.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • m8dvsblobprodcus37.vsblob.vsassets.io
    • Triggering command: /home/REDACTED/work/arcade/arcade/.dotnet/dotnet msbuild /m /nologo /clp:Summary /v:minimal /nr:true /warnaserror /p:TreatWarningsAsErrors=true /p:ContinuousIntegrationBuild=false /home/REDACTED/work/arcade/arcade/artifacts/toolset/restore.proj /t:__WriteToolsetLocation /clp:ErrorsOnly;NoSummary /p:__ToolsetLocationOutputFile=/home/REDACTED/work/arcade/arcade/artifacts/toolset/11.0.0-beta.25453.1.txt (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Include AspNetCore.snk in StrongNameSignInfo Include AspNetCore.snk in StrongNameSignInfo Sep 5, 2025
Copilot AI requested a review from mmitche September 5, 2025 00:41
@mmitche mmitche requested a review from ellahathaway September 5, 2025 00:44
@mmitche mmitche marked this pull request as ready for review September 5, 2025 13:24
@mmitche mmitche enabled auto-merge (squash) September 5, 2025 13:24
@mmitche mmitche merged commit f4098fc into main Sep 5, 2025
10 checks passed
@mmitche mmitche deleted the copilot/fix-16105 branch September 5, 2025 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include AspNetCore.snk in StrongNameSignInfo

4 participants