-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
@MichaeIDietrich: We will discuss this in the WPF triage meeting later today. Thanks. |
src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/CompilerState.cs
Outdated
Show resolved
Hide resolved
5264f28
to
d10b3c0
Compare
Can this PR be completed or is there something that is missing? |
Apologies, @MichaeIDietrich. I didn't see that this PR had been updated. |
@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.) |
No problem. 😄 |
There was a problem hiding this 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.
Thanks again, @MichaeIDietrich. |
Co-authored-by: Michael Dietrich <[email protected]>
Co-authored-by: Michael Dietrich <[email protected]>
…4053) (#4098) Co-authored-by: Michael Dietrich <[email protected]> Co-authored-by: Michael Dietrich <[email protected]>
…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]>
This was approved to go in to 3.1 and 5.0 servicing releases. Thanks. |
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 theMarkupCompile.cache
file.A copy of the
GetNonRandomizedHashCode()
method fromString.Comparison.cs
is used instead.The bug was found as part of #3876.