Open maurobernal opened 2 years ago
En Net 5.0, en StartUp.cs
public class Startup { ... public void ConfigureServices(IServiceCollection services) { services.AddBreadcrumbs(GetType().Assembly); } }
En Net 6.0 in Program.cs
var builder = WebApplication.CreateBuilder(args); builder.Services.AddBreadcrumbs(GetType().Assembly); var app = builder.Build(); app.Run();
I have this error with GetType():
An object reference is required for the non-static field, method, or property 'object.GetType()'
En Net 5.0, en StartUp.cs
En Net 6.0 in Program.cs
I have this error with GetType():
An object reference is required for the non-static field, method, or property 'object.GetType()'