Skip to content

Exception thrown when using SemVer operator with Semver NuGet v3.0.0 #137

@deepforest

Description

@deepforest

Given a project that is using Semver NuGet Version="3.0.0" explicitly:

.csproj

<PackageReference Include="Semver" Version="3.0.0" />

An exception is thrown by Flagsmith SDK when trying to evaluate a feature that is using this operator, locally (Local Evaluation Mode):

How to repro:

  • Create new .NET 8.0 project (or 9.0)
  • Add Semver ver 3.0.0 nuget
  • Add Flagsmith 7.0.1 nuget
  • Setup Flagsmith to use Local Evaluation.
  • Evaluate any flag with segment override with at least one SemVer operator.

Expected:
Feature successfully evaluated.

Actual:
Exception is thrown when trying to evaluate locally.
Failed to access feature my-feature for identity FlagsmithDemo: Method not found: 'Boolean Semver.SemVersion.op_GreaterThan(Semver.SemVersion, Semver.SemVersion)'.

Suggestion:
Either upgrade to latest Semver and fix breaking changes, or better, do not use Semver, instead, implement the version comparison operators as part of the library.

The less 3rd-party NuGet being used, the less compatibility and dependency hell.

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