Skip to content

Document public key mismatch causes and modern remediation for CS0281 (Fixes #32996) - #56661

Open
Manish-1kumar wants to merge 1 commit into
dotnet:mainfrom
Manish-1kumar:users/manish/issue-32996-cs0281-description-incomplete
Open

Manish-1kumar wants to merge 1 commit into
dotnet:mainfrom
Manish-1kumar:users/manish/issue-32996-cs0281-description-incomplete

Conversation

@Manish-1kumar

Copy link
Copy Markdown
Contributor

Fixes #32996

Summary of Changes

  • Documents both compiler error message variations for CS0281 (assembly name mismatch vs. public key mismatch).
  • Explains the strong-naming requirement where strong-named assemblies granting friend access require the grantee assembly to be signed with the full public key specified in \InternalsVisibleTo.
  • Adds modern .csproj\ MSBuild configuration examples (\SignAssembly, \AssemblyOriginatorKeyFile) alongside CLI tool commands.
  • Modernizes phrasing and metadata.

@dotnetrepoman dotnetrepoman Bot added this to the November 2026 milestone Nov 1, 2026
@dotnet-policy-service dotnet-policy-service Bot added dotnet-csharp/svc csharp-errors-warnings/subsvc community-contribution Indicates PR is created by someone from the .NET community. labels Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates PR is created by someone from the .NET community. csharp-errors-warnings/subsvc dotnet-csharp/svc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CS0281 Description Incomplete

1 participant