Disable Browser Link - which toolbar

岁酱吖の 提交于 2019-11-27 04:15:17

问题


I want to disable visual studios browser link. I found this question: How can I disable __vwd/js/artery in VS.NET 2013? and many other resources saying I should untick "Enable Browser Link" in the toolbar, but that toolbar doesn't show up in my visual studio. I've enabled all the debug toolbars but still no browser link button.


回答1:


http://blogs.msdn.com/b/webdev/archive/2013/06/28/browser-link-feature-in-visual-studio-preview-2013.aspx

This should explain how to turn off browser link. You could do it via web.config:

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

or do it from the toolbar:

If that button isn't available, go to VIEW > Toolbars > Standard and make sure it's checked. Keep in mind it's only available in VS2013 and later.




回答2:


My refresh button was to the right in VS 2015 in case this helps anyone:




回答3:


Merely unchecking Enable Browser Link didn't do the trick for me in VS 2017.

I had to also uncheck Enable JavaScript debugging in ASP.NET in Tools > Options > Debugging as suggested here.

Update for 15.7.4: Not related to Browser Link specifically but I had to uncheck Stop debugger when browser window is closed in Tools > Options > Projects and Solutions > Web Projects to prevent new browser windows (not tabs) from being opened when starting a project with debugging.




回答4:


Go to web.config and just type

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

Finished! Ez and simple!




回答5:


It looks like it can be difficult to identify where Browser Link button is. Show Browser Link button in the toolbar:



来源:https://stackoverflow.com/questions/23101265/disable-browser-link-which-toolbar

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