Skip to content

VersionExtensions Regex does not support package ID ending with numbers #472

@CrazyOrange

Description

@CrazyOrange

Hi,

if you use NuGet Package Explorer and your nuget package id ends with a number updates won't work anymore (caused by changes in VersionExtensions.cs for prerelease support).

The NuGet Package Explorer uses a point to seperate the package id from the version number (at least if you don't change the filename).

ID: MyId123
Version: 1.1.0

The result would be "MyId123.1.1.0.nupkg"

The suffix regex will remove ".nupkg" and the version regex will match "123.1.1.0" instead of "1.1.0".

A workaround would be renaming your NuGet Package to "MyId123-1.1.0.nupkg".
The code should be changed or this naming issue should be noted somewhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug:failing-test-would-be-niceIssues that would benefit from an automated test to confirm the problemhelp wantedIssues and features that are open to external contribution

    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