stevo stevo - 1 year ago 111
ASP.NET (C#) Question

How to register an instance to the ServiceCollection in ASP.NET Core 1.0 RC2

I'm migrating my web app from ASP.NET Core RC1 to RC2. In RC2 the

doesn't have the
method anymore. How do I get the Configuration registered?

Here how it was done in RC1

public class Startup
public IConfiguration Configuration { get; set; }

public void ConfigureServices(IServiceCollection services)
// AddInstance doesn't exist

Answer Source

try this:


I had same problem like you and I solved it with this.

Tomas B.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download