proggrock
proggrock

Reputation: 3289

ASPNet Core - the call is ambiguous in Startup.cs configure

asp.net core .net 461

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

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

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

Upvotes: 4

Views: 1421

Answers (1)

Ilya Chumakov
Ilya Chumakov

Reputation: 25049

Try to update Microsoft.Extensions.Logging.* packages. Then, as usual:

  • Close Visual Studio.
  • Delete .vs folder.
  • Run dotnet restore from CMD.

Upvotes: 2

Related Questions