Skip to content

Conversation

Copy link

Copilot AI commented Feb 5, 2026

Source generators were inheriting SignAssembly=true from Directory.Build.props, causing strong name verification failures on .NET Framework 4.7.2:

Strong name signature could not be verified. The assembly may have been tampered with,
or it was delay signed but not fully signed with the correct private key.

Changes

  • Override SignAssembly to false in CommandLineUtils.Generators.csproj

Source generators run in the compiler process and should not be strong-named. Only the runtime libraries (McMaster.Extensions.CommandLineUtils, McMaster.Extensions.Hosting.CommandLine) need strong naming.

Original prompt

fix the strong naming issue encountered in the windows test run (see https://github.com/natemcmaster/CommandLineUtils/actions/runs/21621015470/job/62309897068?pr=591)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Source generators run in the compiler/IDE process and should not be
strong-named. This fixes the Windows .NET Framework 4.7.2 test
failures where the generator DLL was being signed with the same key
as the main library, causing strong name verification errors.

Co-authored-by: sensslen <[email protected]>
Copilot AI changed the title [WIP] Fix strong naming issue in Windows test run fix: disable strong naming for source generator assembly Feb 5, 2026
Copilot AI requested a review from sensslen February 5, 2026 07:18
@sensslen sensslen marked this pull request as ready for review February 5, 2026 07:23
@sensslen sensslen merged commit 1a2678e into main Feb 5, 2026
@sensslen sensslen deleted the copilot/fix-strong-naming-issue branch February 5, 2026 08:05
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.

2 participants