Skip to content

Conversation

@guimafelipe
Copy link
Member

Fixes Issue #3876

Main PR

Description

Building a WPF .NET Core project with dotnet.exe is not deterministic, but building it with msbuild.exe is deterministic as expected.

This PR is based on this fix from @MichaeIDietrich.

This add the optimization of comparing the strings using StringComparer.Ordinal.

Customer Impact

This issue may break incremental builds.

Regression

No regression.

Testing

The fix was testing building some projects using the dotnet build command, and comparing the generated files using a diff program. Without the fix, the files are almost always different.

Risk

@guimafelipe guimafelipe requested a review from a team as a code owner July 29, 2021 19:16
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Jul 29, 2021
@ghost ghost requested review from SamBent, fabiant3 and ryalanms July 29, 2021 19:16
@guimafelipe guimafelipe changed the title Fixing.deterministic.bug Fixing deterministic build bug with dotnet.exe, adding optimization Jul 29, 2021
@ryalanms ryalanms merged commit 9e5a4a4 into main Jul 29, 2021
@vishalmsft vishalmsft deleted the fixing.deterministic.bug branch February 10, 2022 06:04
@ghost ghost locked as resolved and limited conversation to collaborators Apr 7, 2022
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.

4 participants