Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UseBrowserLink Error while trying to build a project in ASP.NET Core in VS 2017

I am trying to Build a web Project that uses ASP.NET CORE Framework. In the start.cs file I'm getting compile time error near app.UseBrowserLink() and I don't know why. I didn't make any changes on that 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.BrowserLinkLoaderExtensions.UseBrowserLink(Microsoft.AspNetCore.Builder.IApplicationBuilder)' MyPage C:\Users\adduria\Source\Repos\TelerikUI\MyPage\src\MyPage\Startup.cs 49 Active"

Can you please help me with that?

like image 600
Anish varma Adduri Avatar asked May 11 '17 20:05

Anish varma Adduri


1 Answers

Check your Nuget, you might have both the Microsoft.VisualStudio.Web.BrowserLink and Microsoft.VisualStudio.Web.BrowerLink.Loader packages referenced. Remove the Loader one.

Nuget - BrowserLink

like image 149
Sam Avatar answered Sep 28 '22 02:09

Sam