Skip to content

When editing project file, metadata access (->) can get mangled #2834

Open
@dsplaisted

Description

@dsplaisted
  • Create a .NET Core project
  • Edit .csproj in Visual Studio
  • Add the following target:
  <Target Name="CheckForFile" BeforeTargets="_CheckForInvalidConfigurationAndPlatform">
    <ItemGroup>
      <TestItem Include="@(None-&gt;WithMetadataValue('Identity', 'output.txt'))" />
    </ItemGroup>
    <Error Text="file not found" Condition="" />
  </Target>
  • Save

EXPECTED: Project file is saved as entered
ACTUAL: -> in Include attribute is transformed into -&gt;.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-External-CPSOwned by CPS and not this repo. Likely be closed in lieu of issue filed against VS platform.Triage-ApprovedReviewed and prioritized

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions