UseBrowserLink error when trying to create a project in ASP.NET core in VS 2017

I am trying to create a web project that uses ASP.NET

CORE Framework. In the start.cs file I get a compile time error next to app.UseBrowserLink()

and I don't know why. I have not made any changes to this file.

"Error CS0121 The call is ambiguous between the following methods
or properties:" Microsoft.AspNetCore.Builder.BrowserLinkExtensions.UseBrowserLink (Microsoft.AspNetCore.Builder.IApplicationBuilder) "and Microsoft.AspNetCore.Builder.BrowserLinkLoaderExtensionsIAUseBuilder. BuilderIA: CIA.Builder.pp \ Source \ Repos \ TelerikUI \ MyPage \ src \ MyPage \ Startup.cs 49 Active "

Can you help me with this?

+4


source to share


4 answers


Check your Nuget, you can link to packages Microsoft.VisualStudio.Web.BrowserLink

and Microsoft.VisualStudio.Web.BrowerLink.Loader

. Delete Loader

one.



Nuget - BrowserLink

+2


source


I got the same error on Visual Studio 2017. To fix this issue:



  • Install Microsoft.VisualStudio.Web.BrowserLink 2.2.0
  • Rebuild your project
0


source


Same error for me in Visual Studio 2017, v15.9.10, using .NET Core 2.1. I solved it by installing the following NuGet packages in order:

  1. Microsoft.AspNetCore.Hosting.Abstractions v2.1.1
  2. Microsoft.VisualStudio.Web.BrowserLink v2.1.1

The required package version will depend on the .NET Core version of the project. As far as I can tell, you should guess. Do your best and if the installation fails, the error message will sometimes tell you which version to install, or that you have chosen a version that is too low. Use the hints in the error messages to find the correct version.

0


source


You need to install the following dependencies:

Microsoft.VisualStudio.Web.BrowserLink
Microsoft.Extensions.FileProviders.Physical
Microsoft.Extensions.FileSystemGlobbing
Microsoft.AspNetCore.Hosting.Abstractions
Microsoft.Extensions.Hosting.Abstractions
Microsoft.AspNetCore.Hosting.Server.Abstractions
Microsoft.Extensions.Configuration.Abstractions
Microsoft.AspNetCore.DataProtection.Abstractions
Microsoft.AspNetCore.Cryptography.Internal
Microsoft.Extensions.WebEncoders
Microsoft.AspNetCore.Authentication.Core
Microsoft.AspNetCore.Http.Extensions
Microsoft.Extensions.FileProviders.Abstractions
Microsoft.AspNetCore.Http
Microsoft.Extensions.ObjectPool
Microsoft.AspNetCore.WebUtilities
Microsoft.Net.Http.Headers
Microsoft.AspNetCore.Authentication.Abstractions
Microsoft.Extensions.Options
Microsoft.Extensions.Logging.Abstractions
Microsoft.Extensions.DependencyInjection.Abstractions
System.ComponentModel.Annotations
Microsoft.Extensions.Primitives
Microsoft.AspNetCore.Http.Abstractions
Microsoft.AspNetCore.Http.Features
Microsoft.Extensions.Primitives

      

0


source







All Articles