Skip to content

Directory.Packages.props updates no longer retain final line ending #723

Closed

Description

@martincostello

Since updating to 4.7.1, I notice that diffs from applying upgrades to Directory.Packages.props in some automation of mine is dropping the final new line in the file:

Image

I would expect the tool to only touch lines that have been edited.

Activity

  1. changed the title [-]Directory.Packages.props updates no longer retain fine line ending[/-] [+]Directory.Packages.props updates no longer retain final line ending[/+] on Mar 10, 2026
  2. martincostello commented on Mar 10, 2026

    @martincostello
    ContributorAuthor

    Curiously, only seems to happen if 2+ dependencies are updated. If it's only 1, then it's fine.

  3. johan-lindqvist commented on Apr 20, 2026

    @johan-lindqvist

    I'm also having issues where it doesn't seem to follow .editorconfig rules at all in the Directory.Packages.props file.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions