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

Fix incremental build for WPF projects with dotnet.exe #4053

Merged
merged 1 commit into from
Jan 28, 2021

Conversation

MichaeIDietrich
Copy link
Contributor

@MichaeIDietrich MichaeIDietrich commented Jan 21, 2021

This PR fixes incremental builds for WPF projects if dotnet.exe is used for building.

The GetHashCode() method of strings can produce different hash values between subsequent program runs in .NET Core and cannot be used to persist the MarkupCompile.cache file.

A copy of the GetNonRandomizedHashCode() method from String.Comparison.cs is used instead.

The bug was found as part of #3876.

@MichaeIDietrich MichaeIDietrich requested a review from a team as a code owner January 21, 2021 19:07
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Jan 21, 2021
@ghost ghost requested review from fabiant3, ryalanms and SamBent January 21, 2021 19:07
@dnfadmin
Copy link

dnfadmin commented Jan 21, 2021

CLA assistant check
All CLA requirements met.

@ryalanms
Copy link
Member

@MichaeIDietrich: We will discuss this in the WPF triage meeting later today. Thanks.

@MichaeIDietrich
Copy link
Contributor Author

Can this PR be completed or is there something that is missing?

@ryalanms
Copy link
Member

Apologies, @MichaeIDietrich. I didn't see that this PR had been updated.

@ryalanms
Copy link
Member

ryalanms commented Jan 27, 2021

@fabiant3: This looks good. Can you take a look and approve?

(This will go in to 6.0 Preview 2 now, and we can start the process to get it in to servicing releases for other versions.)

@MichaeIDietrich
Copy link
Contributor Author

No problem. 😄

Copy link
Member

@fabiant3 fabiant3 left a comment

Choose a reason for hiding this comment

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

Thanks you for the fix @MichaeIDietrich, this should be merged shortly.

@ryalanms
Copy link
Member

Thanks again, @MichaeIDietrich.

@ryalanms ryalanms merged commit ad75b30 into dotnet:master Jan 28, 2021
ryalanms pushed a commit that referenced this pull request Jan 28, 2021
ryalanms pushed a commit that referenced this pull request Jan 28, 2021
ryalanms added a commit that referenced this pull request Jan 28, 2021
ryalanms added a commit that referenced this pull request Jan 28, 2021
…ler (#4099)

* Add stable hashing algorithm for strings (#4053)

Co-authored-by: Michael Dietrich <[email protected]>

* Allow unsafe code in PresentationBuildTasks

Co-authored-by: Michael Dietrich <[email protected]>
Co-authored-by: Michael Dietrich <[email protected]>
@ryalanms
Copy link
Member

This was approved to go in to 3.1 and 5.0 servicing releases. Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
PR metadata: Label to tag PRs, to facilitate with triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants