10

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?

JuChom
  • 5,717
  • 5
  • 45
  • 78

3 Answers3

10

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

Nicholas Blumhardt
  • 30,271
  • 4
  • 90
  • 101
5

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

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

Juraj Suchár
  • 1,107
  • 6
  • 25
Michael Teper
  • 4,591
  • 2
  • 32
  • 49
1

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

Ed DeGagne
  • 3,250
  • 1
  • 30
  • 46