Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove KeyPair deserialization #6395

Merged
merged 1 commit into from May 24, 2021

Conversation

Forgind
Copy link
Member

@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