ASPNet Core - call is ambiguous in Startup.cs configure

Asp.net .net core 461

A dependency in my .json project is throwing ambiguity errors, I'm having trouble localizing it. Any help is appreciated!

This is similar to this question , but it's not so obvious (to me) where the problem is.

Startup.cs enter image description here

project.json

"dependencies": {
 "Glimpse": "2.0.0-beta1",
"log4net": "2.0.8",
"MailKit": "1.16.0",
"Microsoft.ApplicationInsights.AspNetCore": "2.0.0",
"Microsoft.AspNetCore.Authentication": "1.1.2",
"Microsoft.AspNetCore.Authentication.JwtBearer": "1.1.2",
"Microsoft.AspNetCore.Diagnostics": "1.0.0",
"Microsoft.AspNetCore.Identity.EntityFrameworkCore": "1.1.2",
"Microsoft.AspNetCore.Mvc": "1.0.1",
"Microsoft.AspNetCore.ResponseCaching": "1.1.2",
"Microsoft.AspNetCore.ResponseCompression": "1.0.2",
"Microsoft.AspNetCore.Routing": "1.0.1",
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.1",
"Microsoft.AspNetCore.StaticFiles": "1.1.2",
"Microsoft.EntityFrameworkCore": "1.1.2",
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0",
"Microsoft.Extensions.Configuration.UserSecrets": "1.1.2",
"Microsoft.Extensions.Logging.Console": "1.0.0",
"Microsoft.Extensions.Logging.Debug": "1.0.0",
"Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.1.0",
"MimeKit": "1.16.0",
  },

      

enter image description here

+3


source to share


1 answer


Try updating packages Microsoft.Extensions.Logging.*

. Then, as usual:



  • Close Visual Studio.
  • Delete folder .vs

    .
  • Run dotnet restore

    from CMD.
+1


source







All Articles