AspNetCore.Identity.Mongo icon indicating copy to clipboard operation
AspNetCore.Identity.Mongo copied to clipboard

The build issue that occurs after updating the MongoCSharpDriver

Open SteAmeR opened this issue 1 year ago • 2 comments

Describe the bug An error occurred when updating from mongocharpdriver-2.27 to 2.28 as below;

CS0012 The type 'ObjectId' is defined in an assembly that is not referenced. You must add a reference to assembly 'MongoDB.Bson, Version=2.13.2.0, Culture=neutral, PublicKeyToken=null'

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Nuget Update'
  2. Click on 'MongoCSharpDriver 2.28.0'

Expected behavior As before, we expect it to work in concert without any problems.

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • .Net Core version: [.Net Core 8.0]
  • Package Version: [8.3.3]

SteAmeR avatar Aug 02 '24 08:08 SteAmeR

Same issue. Just discovered this.

Pull request has been posted which should fix: https://github.com/matteofabbri/AspNetCore.Identity.Mongo/pull/128

garethrampton avatar Aug 06 '24 14:08 garethrampton

@matteofabbri kindly review

oriolaakeem avatar Aug 07 '24 15:08 oriolaakeem

hi there, next versions has fixed this issue: v8.3.5 v9.0.0

@SteAmeR v9.0.0 supports Net8, so I advice you to upgrade to this version directly instead of 8.3.5

vova3211 avatar Sep 08 '24 09:09 vova3211