title: ASP.NET Core with Simple Injector
body: <p>I have created a ASP.NET Core Web API application from the VS templates (I have updated VS with the latest ASP.NET Core RC2). However, I am running into issues when attempting to set up my application to use SimpleInjector as the IoC container. </p>
  
  <p>I am using the instructions provided <a href="http://simpleinjector.readthedocs.io/en/latest/aspnetintegration.html" rel="nofollow">here</a>. When I have my mirroring the instructions found at that link, I get an error in the ConfigureServices method saying that IServiceCollection does not have a definition for AddInstance. It also says that IControllerActivator could not be found.</p>
  
  <pre><code>public void ConfigureServices(IServiceCollection services)
      {
          // Add framework services.
          services.AddMvc();
  
          services.AddInstance&lt;IControllerActivator&gt;(
          new SimpleInjectorControllerActivator(container));
          services.AddInstance&lt;IViewComponentInvokerFactory&gt;(
              new SimpleInjectorViewComponentInvokerFactory(container));
      }
  </code></pre>
  
  <p>I realize there may be issues as I'm using the newest RC2 release of ASP.NET (and SimpleInjector support for ASP.NET Core is beta), but I was curious if anyone knew a workaround. Thanks!</p>