henkmollema / Dommel

CRUD operations with Dapper made simple.
MIT License
634 stars 100 forks source link

Could not load type 'IColumnNameResolver' from assembly Dommel, Version=2.0.0.0 #228

Closed igordibuccio closed 4 years ago

igordibuccio commented 4 years ago

I'm using FluentMapDommel and I see this exception when I register for Dommel

Exception

Stack trace => em Dapper.FluentMap.Dommel.FluentMapConfigurationExtensions.ForDommel(FluentMapConfiguration config) em xFidelidade.Data.RegisterMappings.<>c.b__0_0(FluentMapConfiguration config) em D:\Dados\Projetos\xFidelidade\src\xFidelidade.Data\RegisterMappings.cs:linha 19 em Dapper.FluentMap.FluentMapper.Initialize(Action1 configure) em xFidelidade.Data.RegisterMappings.Register() em D:\Dados\Projetos\xFidelidade\src\xFidelidade.Data\RegisterMappings.cs:linha 13 em xFidelidade.Data.Repository.Repository1..ctor(IDbConnection connection) em D:\Dados\Projetos\xFidelidade\src\xFidelidade.Data\Repository\Repository.cs:linha 18 em xFidelidade.Data.Repository.CategoriaClienteRepository..ctor(IDbConnection connection) em D:\Dados\Projetos\xFidelidade\src\xFidelidade.Data\Repository\CategoriaClienteRepository.cs:linha 13 em xFidelidade.CategoriaCliente.frmCategoriaCliente.frmCategoriaCliente_Load(Object sender, EventArgs e) em D:\Dados\Projetos\xFidelidade\src\xFidelidade\CategoriaCliente\frmCategoriaCliente.cs:linha 26 em System.Windows.Forms.Form.OnLoad(EventArgs e) em System.Windows.Forms.Form.OnCreateControl() em System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) em System.Windows.Forms.Control.CreateControl() em System.Windows.Forms.Control.WmShowWindow(Message& m) em System.Windows.Forms.Control.WndProc(Message& m) em System.Windows.Forms.ScrollableControl.WndProc(Message& m) em System.Windows.Forms.Form.WmShowWindow(Message& m) em System.Windows.Forms.Form.WndProc(Message& m) em System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) em System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) em System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

My nugets => Nugets

TroySchmidt commented 4 years ago

https://github.com/henkmollema/Dapper-FluentMap/pull/105 I submitted a pull request months ago to resolve the issue of the breaking major version bump dependency. It hasn't been approved, but needs to be updated to the official v2 release too.

henkmollema commented 4 years ago

Try using Dommel v1.11.0 in the meantime.

igordibuccio commented 4 years ago

Try using Dommel v1.11.0 in the meantime.

I already tried to use version 1.11.0, but there is another error that does not find the 1.6.0 assembly of Dommel

igordibuccio commented 4 years ago

submitted a pull request months ago to resolve the issue of the breaking major version bump dependency. It hasn't been approved, but needs to be updated to the official v2 release too.

I'm new to this community, would you have any suggestions on how to fix this? my project is stopped, because I depend on these frameworks!

TroySchmidt commented 4 years ago

Grab the pending pull request, build the solution and use that temporarily. Fork the whole project and manage your own copies, or roll back to Dommel v1 and deal with the gaps in functionality.

nullpainter commented 4 years ago

would you have any suggestions on how to fix this?

For me, I went back to using EF Core. I used Dommel for rapid development, however the effort to get the current version of Dommel working, with the features I require, and the Fluent Mapper, was greater than just using EF. YMMV, naturally.

dkoshyk commented 4 years ago

hi, any updates about it?

henkmollema commented 4 years ago

Dapper.FluentMap.Dommel v2 is released which fixes this.