Mongo.Migration icon indicating copy to clipboard operation
Mongo.Migration copied to clipboard

MongoDB Driver 2.28 does not work with package v.3.1.4

Open OldShaterhan opened this issue 1 year ago • 5 comments

When I try to update MongoDB.Driver to v. 2.28.0 from v.2.27.0, with Mongo.Migration 3.1.4 it throws I get following errors:

'M_1_0_0_MigrationName' does not implement inherited abstract member 'DatabaseMigration.Up(IMongoDatabase)'
'M_1_0_0_MigrationName' does not implement inherited abstract member 'DatabaseMigration.Down(IMongoDatabase)'
'M_1_0_0_MigrationName.Up(IMongoDatabase)': no suitable method found to override
'M_1_0_0_MigrationName.Down(IMongoDatabase)': no suitable method found to override

It worked properly for older MongoDB Driver versions.

OldShaterhan avatar Jul 28 '24 20:07 OldShaterhan

Have you tried building from the source? I've not had any problems when I started with the project today. since I wanted to update all the nugets anyway, I started my own fork immediately. So far, I've not had any issues.

ssteiner avatar Aug 05 '24 17:08 ssteiner

I use the Nuget version, so building from the source is not an option here.

OldShaterhan avatar Aug 16 '24 08:08 OldShaterhan

I had the same problem, I had to download the source code, update the package and add it directly to my project as a project reference :(

edgarmesquita avatar Sep 03 '24 14:09 edgarmesquita

Mongo decided to strongly name the C# driver, making all previous usages incompatible. Consequently, the updated version of the package that references the updated C# driver version is required.

yzhoholiev avatar Sep 14 '24 08:09 yzhoholiev

I had the same problem, I had to download the source code, update the package and add it directly to my project as a project reference :(

Hi. Maybe You could commit your changes here and make a PR, so @SRoddis kann make a working NuGet?

GambaJo avatar Oct 11 '24 09:10 GambaJo