This article is a mirror article of machine translation, please click here to jump to the original article.

View: 19142|Reply: 2

[Source] What's new in Visual Studio 2013: "Browser Link"

[Copy link]
Posted on 3/28/2017 9:33:39 AM | | |
Today I installed Visual Studio 2013, opened an existing WEB website with VS2013, and when debugging the website, a script error appeared, a file named "browserLink", ??? , These documents are not used in the project, is it poisoned?

Carefully read the information in a VS, find that the browserLink file is referenced to the page, and then check the source code in the flower, and find this piece of code at the bottom:

<!-- Visual Studio Browser Link -->
<scrip{filter}t type="application/json" id="__browserLink_initializationData">
    {"appName":"Internet Explorer","requestId":"13a655707f184a1d94d45cad5e20e6cc"}
</scrip{filter}t>
<scrip{filter}t type="text/javascrip{filter}t" src="http://localhost:3925/609bc31e3c0549e09b2b8b4504b0be13/browserLink" async="async"></scrip{filter}t>
<!-- End Browser Link -->



I was relieved to see the comments, it should be a new feature in Visual Studio 2013, and then googled it, but Browser Link is actually a new feature.



What is Browser Link?

The function of this Browser Link is to build a communication bridge between the flow and the Visual Studio IDE through a script file, and after enabling Browser Link, Visual Studio will inject an IHttpModule module object into the website, and then register a script on each page.



The Browser Link feature is implemented using SignalR technology.



With all that said, what exactly is the Browser Link function used for?

Now the Broswer Link function is relatively simple,This is used to refresh pages that are already open in the Visual Studio IDE browser, Why refresh pages in the Visual Studio IDE?

There is such an application scenario: If you are developing a page, this page needs to be compatible with IE, GOOGLE, FIREFOX and mobile browsers, it is possible that you will use these flowers to open your page at the same time, if you find some kind of problem, go back to VS IDE to modify, and after the modification, you can click "Refresh Linked Browsers" in the Visual Studio IDE to refresh all browsers to see the effect.



Now this "Browser Link" only has such a refresh function, but the Browser Link function can be written as an extension function, and you can customize some of the functions you need.





Previous:BundleTable does not load js and css files with min
Next:Start a blog
 Landlord| Posted on 11/6/2017 1:17:52 PM |
Turn off the Browser Link feature in Visual Studio 2013
http://www.itsvse.com/thread-2836-1-1.html
(Source: Architect)
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com