Skip to content

Strictly fixed version of KurrentDB.Client #982

@AlexTroshkin

Description

@AlexTroshkin

Describe the bug

The CommunityToolkit.Aspire.Hosting.KurrentDB and CommunityToolkit.Aspire.KurrentDB packages require an exact version 1.1.0 of the KurrentDB.Client package, even though nuget specifies >= 1.1.0

I also use another package in the project that depends on KurrentDB.Client but with version >= 1.2.0

As a result, when calling the method builder.AddKurrentDBClient("KurrentDB"), I get the following exception:

System.IO.FileNotFoundException: 'Could not load file or assembly 'KurrentDB.Client, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.'

Here is part of the contents of the packages.lock.json file, showing that the expected version is "1.1.0" instead of "[1.1.0, )":

{
  "version": 2,
  "dependencies": {
    "net10.0": {
      "CommunityToolkit.Aspire.KurrentDB": {
        "type": "Direct",
        "requested": "[13.0.0-beta.444, )",
        "resolved": "13.0.0-beta.444",
        "contentHash": "+wE0wiDvNOe84Sdvapo0iWk+McVisbLEBuiMdv/cl1SA4QlDKqZViwboiZs5JtKELOiO1d8xYP+MTuxMKV9eJQ==",
        "dependencies": {
          "KurrentDB.Client": "1.1.0",
          "OpenTelemetry.Extensions.Hosting": "1.12.0"
        }
      },
	  ...
	  "eventuous.kurrentdb": {
        "type": "Project",
        "dependencies": {
          "Eventuous.Persistence": "[1.0.0, )",
          "Eventuous.Producers": "[1.0.0, )",
          "Eventuous.Subscriptions": "[1.0.0, )",
          "KurrentDB.Client": "[1.2.0, )"
        }
      },
	  ...
      "KurrentDB.Client": {
        "type": "CentralTransitive",
        "requested": "[1.2.0, )",
        "resolved": "1.2.0",
        "contentHash": "YANfNu9gNccpT9qDMvYseHXAKSkrKenQRf7c2iq6mIVeJVEsX0vso9lXOPpN27lDVRcA03keae/zRx9grldT3A==",
        "dependencies": {
          "Google.Api.CommonProtos": "2.16.0",
          "Google.Protobuf": "3.32.1",
          "Grpc.Net.Client": "2.67.0",
          "Grpc.StatusProto": "2.71.0",
          "OpenTelemetry.Api": "1.12.0"
        }
      },
	...
  }
}

Regression

No response

Steps to reproduce

To reproduce the issue, it is enough to create a project, add the packages CommunityToolkit.Aspire.Hosting.KurrentDB and CommunityToolkit.Aspire.KurrentDB, as well as a package containing KurrentDB.Client version >= 1.2.0, for example Eventuous.KurrentDB (available at https://www.myget.org/F/eventuous/api/v3/index.json), and then call the method builder.AddKurrentDBClient(...);

Expected behavior

In the dependencies, the version "[1.1.0, )" should be expected instead of "1.1.0", and the project should also run without the exception mentioned in the description.

Screenshots

No response

IDE and version

Other

IDE version

VS 2026

Nuget packages

CommunityToolkit.Aspire.KurrentDB (13.0.0-beta.444)
CommunityToolkit.Aspire.Hosting.KurrentDB (13.0.0-beta.444)

Additional context

No response

Help us help you

Yes, but only if others can assist

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions