Skip to content

Preserve whitespace for metadata as attributes #1258

Open
@cdmihai

Description

@cdmihai

Input:

<Project xmlns='http://schemas.microsoft.com/developer/msbuild/2003'>
    <ItemGroup>
        <i1 Include='i'
            a='v'
            b='v' />
    </ItemGroup>
</Project>

Action:

itemProjectElement.AddMetadata("m", "v", true);

Output:

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <ItemGroup>
        <i1 Include="i" a="v" b="v" m="v" />
    </ItemGroup>
</Project>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions