dotnet-version-cli icon indicating copy to clipboard operation
dotnet-version-cli copied to clipboard

ERR Value cannot be null. (Parameter 'input') when no versioning tag present

Open LaoArchAngel opened this issue 1 year ago • 0 comments

Our project files do not have Version, VersionPrefix, VersionSuffix, or PackageVersion tags on them. Instead our CI pipeline was using this tool (v2.4.1) to just set the specific version from gitversion.

The new version currently assumes that if our desired tag is Version, but the Version property is not set, to parse the current version from VersionPrefix VersionCli L134. However, it doesn't try to check if the current version is null before trying to do a RegEx match SemVer L55.

Would it be possible for this tool to set the appropriate version tag even if no existing tag is found? Not sure if this is a design decision or not.

EDIT: This is probably only relevant in the case when the args.VersionBump is VersionBump.Specific, as all other cases you might expect an existing version to be there.

LaoArchAngel avatar Jul 10 '24 18:07 LaoArchAngel