My application is ASP.NET MVC5.1 and ASP.NET WEB API 2.1. The application is small and currently using Microsoft Unity for IOC.

Can someone advise me if they know of any changes needed to make Unity work with these very new releases of MVC and Web API?

I am also considering changing to Ninject depending on features.

If I made this move then what features does it offer that the latest version of Unity lacks? My big concern is that Ninject appears to be well supported whereas Unity seems to be a product that's updated every couple of years when the Microsoft guys have the time to look at it.

Finally how much of a change is needed if I change from Unity to Ninject?

有帮助吗?

解决方案 2

Yes, you can use Unity 3.0.1304.1 in ASP.NET MVC/WEB API 5.1 and 2.1 project.

I use it, because i can't configure ninject without any bugs for latest mvc core libraries.

其他提示

I don't know much about Ninject, but we upgraded our MVC4 to MVC5 application here earlier this week, following the instructions for How to Upgrade an ASP.NET MVC 4 and Web API Project to ASP.NET MVC 5 and Web API 2. The application is already in production, so I can confirm that Unity supports these new releases! Then you can continue to use it without any damage.

Hope it helps to make your decision. See ya!

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top