Skip to content

[Improvement] Extend the /updateprojectfiles parameter to update the 'Version' element #2359

@akordowski

Description

@akordowski

Is your improvement request related to a problem? Please describe.
I use GitVersion in a DevOps Pipeline. After using the dotnet pack command the Nuget Package still had the default 1.0.0 version number. I also used the /verbosity Diagnostic to check if the .csproj files are updated, but got no diagnostic info.

Detailed Description

  1. I propose to extend the ProjectFileUpdater class to update the <Version> element in the .csproj file aswell.
  2. I propose to add diagnostic log outputs to the ProjectFileUpdater class, to have a better overview which classes are updated.

Context

Using GitVersion in a DevOps scenario I was expecting that the <Version> element is changed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions