Skip to content

dotnet version call returns exit code 0 on fail #88

Description

@AWoelfel

Hi,

i found dotnet-version-cli in version 2.2.0.0 is returning exit code 0 after an error.

STR:

  • edit your code (create pending git changes)
  • perfrom "dotnet version..." (it should fail; here: "ERR You currently have uncomitted changes in your")
  • check errorcode (should be != 0)

This is a copy of my cmd output

d:\dev>dotnet version  -f path\to_project.csproj patch
dotnet-version-cli version 2.2.0.0
ERR You currently have uncomitted changes in your repository, please commit these and try again
.
.
.
d:\dev>echo %errorlevel%
0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions