dadhi / DryIoc

DryIoc is fast, small, full-featured IoC Container for .NET
MIT License
1.03k stars 122 forks source link

DryIoc.Web 4.0.0 is incompatible with DryIoc 5.2.2 #533

Closed cjberg closed 2 years ago

cjberg commented 2 years ago

The DryIoc.Web NuGet package hasn't been updated since the changes in commit 32f7131731012b77c19c1245d76885bd0dfdf719 , which changed the Scope signature. If used in combination with 5.2.2 the following error is thrown:

[MissingMethodException: Method not found: Void DryIoc.Scope..ctor(DryIoc.IScope, System.Object).]
   DryIoc.Web.HttpContextScopeContextRequestHandler.SetOrKeepCurrentRequestScope(IScope current) +0
   DryIoc.Web.HttpContextScopeContext.SetCurrent(SetCurrentScopeHandler setCurrentScope) in D:\Dev\DryIoc\src\DryIoc.Web\DryIocWeb.cs:173
   DryIoc.Web.HttpContextScopeContextRequestHandler.OnBeginRequest(Object sender, EventArgs _) in D:\Dev\DryIoc\src\DryIoc.Web\DryIocWeb.cs:95
   ...

Would it be possible to release an updated version? A work-around is the stay on 4.8.8 that is compatible.

dadhi commented 2 years ago

@cjberg Thanks for letting me know. I will check if it is possible.

dadhi commented 2 years ago

fixed.

hani1989 commented 2 years ago

When will the version be released?

dadhi commented 2 years ago

@hani1989 Soon, probably Today.

hani1989 commented 2 years ago

@dadhi Thanks for the information.

dadhi commented 2 years ago

@cjberg @hani1989 The DryIoc.Web v5.0.0 is released.

cjberg commented 2 years ago

@dadhi Thank you for taking the time to update the packages!