Visual Studio browser link is grayed out

試著忘記壹切 提交于 2019-12-14 04:00:56

问题


I'm using visual studio 2013, and web essentials 1.1.

I'm trying to use browser link, but the button for it is greyed out in Visual Studio.

Any idea how I can enable it?


回答1:


Do you have this setting in your Web.config file

<appSettings>
    <add key="vs:EnableBrowserLink" value="false"/>
</appSettings>

or debug to false?

<system.web>
    <compilation debug="false" targetFramework="4.5" />
</system.web>

source: http://www.asp.net/visual-studio/overview/2013/using-browser-link




回答2:


Check if the solution root has a file named WebEssentials-Settings.json

From that file, you'll see something like this:

{
  "BrowserLink": {
    "CssIgnorePatterns": "bootstrap*; reset.css; normalize.css; jquery*; toastr*; foundation*; animate*; inuit*; elements*; ratchet*; hint*; flat-ui*; 960*; skeleton*",
    "EnableMenu": true,
    "EnablePixelPushing": true,
    "ShowMenu": false
  },
  /* further settings down below */
}

Notice you have 2 settings. EnableMenu and ShowMenu. I had the same issue as you are having and I got ShowMenu: false while EnableMenu: true. I changed both to true, reopened the solution and it worked.



来源:https://stackoverflow.com/questions/19547744/visual-studio-browser-link-is-grayed-out

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!