The Web.config conversion adds extra lines if none exist.

When my Web.config is converted, it adds a new line before the end value tag in my ApplicationSettings. This new line appears in the configuration and throws an exception. Example:

Web.config:

        <setting name="FilePath" serializeAs="String">
            <value>c:\path</value>
        </setting>

Web.Debug.config:

        <setting name="FilePath" serializeAs="String" xdt:Transform="Replace" xdt:Locator="Match(name)">
            <value>c:\path</value>
        </setting>

Published by Web.config:

        <setting name="FilePath" serializeAs="String">
            <value>c:\path
            </value>
        </setting>

The end value tag on a separate line is causing problems. Does anyone know how to make him stop doing this? Thank.

+5
source share

All Articles