Turn off the Browser Link feature of Visual Studio 2013

Source: Internet
Author: User



Recently the company's new project requires MVC to upgrade the IDE to Visual Studio 2013, where it was developed to find a lot of requests for a local 49925 port.






Very strange, at first thought is Visual Studio 2013 in the creation of the project when the default added JavaScript files or view files caused by a half-day has not been found, after looking at the code FireBug under the discovery, the page below the following code:


<script id="__browserLink_initializationData" type="application/json">
{"appName":"Firefox","requestId":"23b71f085f334e97969864ab934745c5"}
</script>
<script async="async" src="http://localhost:49925/4b38e516c0774211882dabde19ecda0f/browserLink" type="text/javascript">


Then a search was made based on the name Browserlink and found that Browserlink was a new feature of Visual Studio 2013.



What is Browser Link?



The function of this Browser link is to use a script file to rack up a communication bridge before the process and Visual Studio IDE, and after enabling Browser link, Visual Studio injects a IHttpModule module into the Web site object, and then register a script above each page.



The Browser Link feature is implemented using SignalR technology.



Having said so much, what exactly is the Browser Link function used for?



Now the Broswer Link function is simple, which is to refresh the page in the Visual Studio IDE if the Visual Studio IDE can refresh the page that is already open in the browser .



There is such a scenario: if you are developing a page, this page needs to be compatible with IE, GOOGLE, FIREFOX and Mobile browser, it is possible that you will be able to use these processes at the same time to open your page, if you find that there is a problem, back to the VS IDE to modify, after the changes can be in the Visual S Tudio the IDE point "refresh Linked Browsers" to refresh all browsers to see the effect.



Now this "Browser link" only has such a refresh function, but the Browser link function can write extension functions, you can customize some of the features you need.



If you do not want to use this feature, simply add the following code to the AppSettings node in Web. config.





1 <add key= "Vs:enablebrowserlink" value= "false"/>


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



Turn off the Browser Link feature of Visual Studio 2013


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.