Skip to content

WriteOnlyWhenDifferent should check with the same encoding #8361

Open

Description

The encoding is missing on the check for WriteOnlyWhenDifferent

string existingContents = System.IO.File.ReadAllText(File.ItemSpec);

while it's present on the subsequent write:
System.IO.File.WriteAllText(File.ItemSpec, contentsAsString, encoding);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Area: TasksIssues impacting the tasks shipped in Microsoft.Build.Tasks.Core.dll.Partner requestbackloghelp wantedIssues that the core team doesn't plan to work on, but would accept a PR for. Comment to claim.triaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions