devtrends/Unity.WebAPI

Does not works with last version of Unity (5.0.x)

Closed this issue · 4 comments

I've get an error, when I try to compile my prject:

Error	CS0246	The type or namespace name 'UnityContainer' could not be found (are you missing a using directive or an assembly reference?)

Same for me. I tried to take the same classes into my project with Unity 5.0 but then I get the error : "The current type, System.Web.Http.Hosting.IHostBufferPolicySelector, is an interface and cannot be constructed". I'm pretty much to the point to revert to Unity 4.

@istagir @apaolitto The same error.
And my solution is Install a package "Unity.Container" which also provided by Microsoft.Practices.Unity.

And then git clone this Unity.WebAPI Project and update all Nuget package, since Unity.WebAPI still reference Unity 4.X, if you use Unity 5.0 may have reference error.

After that, it should work again.

@devtrends Would you please update the package to support Unity 5.0. Thanks

Yep. Will sort it out.

updated and new nuget released.