title: Getting Autofac to work with MVC6/ASP.NET5
body: <p>I cannot get autofac to work, I have looked at this <a href="https://stackoverflow.com/questions/30551700/getting-autofac-to-work-with-mvc6-beta5">potentially duplicate</a> question, but it doesn't help.</p>
  
  <p>I am using the full .NET stack, <strong>DNX 4.5.1</strong></p>
  
  <p>I have included the following dependencies.</p>
  
  <pre><code>  "dependencies": {
      // matched latest autofac version with latest dependencyinjection version.
      "Autofac": "4.0.0-beta8-157",
      "Autofac.Framework.DependencyInjection": "4.0.0-beta8-157",    
      "Microsoft.AspNet.Mvc": "6.0.0-rc1-final" ...
  </code></pre>
  
  <p>And the following initialisation code.</p>
  
  <pre><code>// void?
  public void ConfigureServices(IServiceCollection services)
  {
       services.AddMvc();
  
       var container = new ContainerBuilder();
       ...
       // compilation error here!
       container.Populate(services);
  }
  </code></pre>
  
  <p>I am receiving this error:</p>
  
  <pre><code>Error   CS1503  Argument 2: cannot convert
  from'Microsoft.Extensions.DependencyInjection.IServiceCollection' to
  'System.Collections.Generic.IEnumerable&lt;Microsoft.Framework.DependencyInjection.ServiceDescriptor&gt;' 
  MuWapp.DNX 4.5.1    C:\MuWapp\Startup.cs    54  Active
  </code></pre>