Skip to content

Version mismatch in Aspire.MongoDB.Driver #5427

@hades200082

Description

@hades200082

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I have Aspire.MongoDB.Driver and am using it as follows in my API project:

builder.AddMongoDBClient("Database");

After updating from Aspire.MongoDB.Driver 8.0.2 to 8.1.0 I now get an error:

Error CS0012 : The type 'MongoClientSettings' is defined in an assembly that is not referenced. You must add a reference to assembly 'MongoDB.Driver, Version=2.27.0.0, Culture=neutral, PublicKeyToken=null'.

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version info

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-integrationsIssues pertaining to Aspire Integrations packages

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions