dotnet / dotnet/msbuild

AutoGenerateBindingRedirects doesn't preserve whitespace in XML

Open
#2,012 0 comments 0 reactions 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 6h
Merged PRs (30d)
139

Description

Reported by Aleks Gershaft (Microsoft):

The problem we hit is that AutoGenerateBindingRedirects is not preserving whitespace when doing transformation on app.config. This means that any config entries that have spaces get XML-encoded to contain special symbols.

On the other hand, the TransformXml target from Web.Publishing.Tasks is able to preserve XML while still transforming it. Would it be possible to make AutoGenerate to also preserve setting formatting?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.