Turn off the Browser Link feature of Visual Studio 2013

Source: Internet
Author: User

Recently, the company made new projects with MVC, upgraded the IDE to Visual Studio 2013 and found many requests for a local 49925 port at development time.

It's strange to think that Visual Studio 2013 was created by default in the creation of a project by the JavaScript file or the view file, found for a long time did not find, after the FireBug to see the code found below the page like 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 we searched for the name of Browserlink and found that Browserlink is a new feature of Visual Studio 2013.

What is Browser Link?

The function of this Browser link is to use a script file to frame a communication bridge before the process and the Visual studio IDE, and when Browser Link is enabled, 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, the Browser Link function is used for what exactly.

The Broswer Link feature is now simple enough to refresh the page in the Visual Studio IDE by refreshing the pages that are already open in the browser.

There is an application scenario: If you are developing a page that needs to be compatible with IE, GOOGLE, FIREFOX, and mobile browsers, it is possible that you will use these processes to open your page at the same time, and if you find a problem, go back to the VS IDE and modify it to Tudio the IDE point "refresh linked Browsers" to refresh all browsers to see the effect.

Now this "Browser link" has only one refresh feature, but Browser link features the ability to write extensions that customize some of the features you need.

If you don't want to use this feature, just add the following code to the AppSettings node in the 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

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.