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

Add [Serializable] to PortableLibraryFiles and other similar classes #6490

Merged
merged 4 commits into from
May 28, 2021

Conversation

Forgind
Copy link
Member

@Forgind Forgind commented May 26, 2021

This broke an internal test (see https://dev.azure.com/devdiv/DevDiv/_git/VS/pullrequest/326484).

I tested reverting the PR that removed the [Serializable] attributes as well as just adding them back in parallel. Both PRs worked:
https://devdiv.visualstudio.com/DevDiv/_git/VS/pullrequest/327003
https://devdiv.visualstudio.com/DevDiv/_git/VS/pullrequest/327004

So I would suggest just taking the smaller change to unblock master without creating unnecessary future changes.

/cc: @rainersigwald @benvillalobos

Copy link
Member

@rainersigwald rainersigwald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can merge this to unblock insertion flow, but we need a test in our repo that hits the codepath that failed. Please create a work item for that and put it high on our to-do list.

@@ -10,6 +11,7 @@ namespace Microsoft.Build.Tasks
/// <remarks>
/// This class is a caching mechanism for the Register/UnregisterAssembly task to keep track of registered assemblies to clean up
/// </remarks>
[Serializable]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment why these are necessary?

@Forgind Forgind merged commit c8d4b38 into dotnet:main May 28, 2021
@Forgind Forgind deleted the serializable-PLF branch May 28, 2021 00:31
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.

None yet

3 participants