Skip to content

Remove KeyPair deserialization#6395

Merged
Forgind merged 1 commit intodotnet:vs16.11from
Forgind:do-not-serialize-strong-name
May 24, 2021
Merged

Remove KeyPair deserialization#6395
Forgind merged 1 commit intodotnet:vs16.11from
Forgind:do-not-serialize-strong-name

Conversation

@Forgind
Copy link
Copy Markdown
Contributor

@Forgind Forgind commented Apr 30, 2021

Fixes #6389

Context

Strong Name Key Pairs aren't available on .NET 6+, and although it's fine to serialize null and remember that's what it is, deserializing involves assigning null to something that shouldn't exist, which is throwing an error, invalidating all RAR caches.

This fixes that problem.

Changes Made

No longer serialize or deserialize a null value for KeyPair.

Testing

Allowed precomputed cache to function properly. (Local test only)

/cc: @rokonec

@Forgind Forgind added the merge-when-branch-open PRs that are approved, except that there is a problem that means we are not merging stuff right now. label May 6, 2021
@Forgind Forgind changed the base branch from main to vs16.11 May 24, 2021 22:46
@Forgind Forgind merged commit c1d3185 into dotnet:vs16.11 May 24, 2021
@Forgind Forgind deleted the do-not-serialize-strong-name branch May 24, 2021 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-when-branch-open PRs that are approved, except that there is a problem that means we are not merging stuff right now.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RAR Caches are Broken in .NET 6 Preview 4

2 participants