Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Autofac MVC Integration with ASP.Net MVC 4

I am starting a new project in ASP.Net MVC 4 and I was wondering if it was possible to use Autofac MVC3 Integration with a MVC 4 project?

like image 526
JuChom Avatar asked Jan 30 '12 17:01

JuChom


3 Answers

Yes, grab the NuGet package and go for it :)

like image 72
Nicholas Blumhardt Avatar answered Oct 01 '22 08:10

Nicholas Blumhardt


There is now an MVC4 package on NuGet: https://nuget.org/packages/Autofac.Mvc4/

More info: Autofac ASP.NET MVC 4 (Beta) Integration

like image 26
Michael Teper Avatar answered Oct 01 '22 08:10

Michael Teper


Replaced Unity.Mvc with Autofac due to intermittent issues with Unity.Mvc. I did this replacement just this morning.

Project is an MVC 4 project and I am using the Autofac Mvc 4 beta. Works like a charm, and really like the auto registration feature (lacking in Unity).

Two thumbs up!!

like image 21
Ed DeGagne Avatar answered Oct 01 '22 09:10

Ed DeGagne