JuChom
JuChom

Reputation: 5989

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?

Upvotes: 10

Views: 8367

Answers (3)

Michael Teper
Michael Teper

Reputation: 4651

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

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

Upvotes: 5

Ed DeGagne
Ed DeGagne

Reputation: 3269

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!!

Upvotes: 1

Nicholas Blumhardt
Nicholas Blumhardt

Reputation: 31797

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

Upvotes: 10

Related Questions