Skip to content

csproj replacement updates wrong XML nodes #25

@NecatiMeral

Description

@NecatiMeral

Hey everyone,

thanks for providing such a powerful extension. We're using it extensively and it makes my DevOps-journey much simpler.
When attempting to create CI/CD pipelines for some of our .Net-Framework (4.8) applications, I've noticed that the version replacement in the csproj files is a little too lax.

We have a kind of dotnet monorepo which hosts our internal framework code. A new package version is created for all packages at once.
We have a Directory.Build.props which specified the version at a repository wide level like this; this gets replaced as expected:
image

Unfortunately, in the project files, the PackageReference's version value gets replaced also, which thankfully breaks the build:
image

Proposal:
Since I think there are valid scenarios for this kind of replacement, can you provide a toggle to exclude PackageReference nodes?

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