How to launch silverlight with IE in Visual Studio while Google Chrome stays default for usual browsing - visual-studio

I cannot debug silverlight with Google Chrome. I don't want to change default browser to IE for my normal internet browsing.
How to only ask to run IE when running a silverlight project in Visual Studio ?

In Visual Studio you can specify the browser to use when running a web project. Right click on the start webpage in your web project and click on the Browse With option.
In the dialog that appears click on Chrome and set it to default.
This will not change you default browser in Windows.

Right Click on ClientBin it is in your Projectweb.and change the default browser or remove the un wanted browser then click ok. Thats it.
or
ProjectWeb->Browse with->change the default browser->ok

Or, just install the IETab extension for Chrome, then set it to automatically run the Silverlight page in IE mode.
https://chrome.google.com/webstore/detail/ie-tab/hehijbfgiekmjfkfjpbkbammjbdenadd

Related

Visual Studio Community for Mac - Change browser from Safari to Chrome

In VS on windows I have the option to change which browser I debug with. On my Mac I'm not getting an option to change the browser.
Any ideas how I can do this?
Change your default browser to Chrome: It'll change in visual studio too.
go to:
apple icon on the top right -> system preferences -> General -> Default Web Browser: select Google Chrome (Drop down menu).
i've multiplets projects in my solution, when i changed the startup projects to more than one app , it allowed me to change the default debug app to what i want , changed the web app to edge and api app to the terminal
works like charm without changing the default web browser for the sysytem

Visual Studio 2012 change web browser

If I click control-click a hyperlink in the text editor, it opens the URL in a new Visual Studio tab. I would rather the link open outside Visual Studio in my system's default web browser (happens to be Google Chrome). How can I arrange this?
I'm talking about hyperlinks in code comments.
I am using Visual Studio 2012. I found a similar question dated 2009, however the accepted answer (a macro) doesn't work in Visual Studio 2012.
Frustratingly, this isn't possible in Visual Studio 2012 or 2013.
Bug reported to developers at http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2723548-open-links-in-an-actual-browser Please add your vote!
There is an extension Open in External Browser.
I'm using Visual Studio 2013 Professional. It works for me.
To install:
Go to "Tools" - "Extension and Updates..."
Choose "Online" - "Visual Studio Gallery" on left pane
Type in search field "open in external browser"
Click "Install"
It seems that it is not possible (except if your default browser is IE, so you would not know the difference).
As Anand wrote above, you could ctrl + right click on the link and then select open link in external window (you cannot do that on the start page, only on an opened webpage) but it still opens the window in IE no matter what your default browser is.
Even if you go to TOOLS --> Options --> Environment --> Web Browser, you will notice that it indicated that IE and the internal VS web browser are siblings.
So just copy the URL from the address bar and paste it to your default browser (it's not too much trouble in my opinion).
In VS 2012 Professional, on the toolbar next to the run debug icon, is the word 'Start' which can be expanded. When expanded you have the option to 'Open with...' and you can select the browser to open the web project up in. It does not run the debugger, it only opens the website in the selected browser. (toolbar > Start (expanded) > Open with...)
You can use the default browser switcher application if you are using Visual Studio 2010 for this kind of situation:
On your tool bar menu select "TOOLS"
Then from options choose "EXTENSION Manager"
It will open the extension manager window in the left hand side there are options choose the "Online Gallery" option
In Online Gallery search for "WoVS Default Browser Switcher"
Download it and Install it
After download restart VS
Hope this works best for you
I found a way to change the default browser for all actions in Visual Studio Express 2012 for Web. It's documented here:
By default, Visual Studio uses your default browser to test pages. To use a different browser or Page Inspector, right-click [an .aspx] page in [the] Solution Explorer and then click [...] Browse With [, which] lets you select a browser from a list, add new browsers to the list, or set one as the default browser. (The default browser setting here applies only to the Visual Studio environment and not to Windows.)
This also changes the default browser for F5'ing an MVC project, because I'm used to closing IE to stop debugging. When I let Visual Studio use my system's default browser, I first have to switch back to it from my browser to stop debugging, because closing the browser tab doesn't.
Unfortunately it still doesn't open links in comments in a browser.
I don't actually know what you mean under hyperlink, but you can easily make VS2012 working with another browser by simply.. uninstalling IE9 (Control Panel->Software->Windows components->bye bye IE9).
Well I found a workaround that is not so clean :P
Add a .html file to your project
Open the new .html file and click inside the editor.
Now Goto 'File' > 'Browse With...' from the Visual Studio Top Menu.
In the 'Browse With' Window, select the desired browser and click
the 'Set as Default' button.
Click the Browse button to set the new default selection.
This is what you have to do:
Go to the standard menu toolbar
Click on 'Add or Remove Buttons'
Tick the 'Debug Target' option
VS 2012 -->> File -->> Browse With -- >> Select Browser -->> Click on "set Default" Button -->> Now Click "Browse" Button
Go thru this setting...
Hope this will help you

How to set IE as default browser for mvc3 application

I have set IE as my default browser but when I run the ASP.Net MVC3 application it opens by default IN Mozilla Firefox. How can I set that when I run the MVC3 application so it opens in IE by default instead?
If you are running the application from within Visual Studio you can right-click an html/aspx file outside of the Views directory and select 'Browse With'. From here you can change the browser that your app will launch with when you run the app from within Visual Studio.
You can't set the default for only a single application. You set the defaults for protocols. In this case, you want to set the default for http. The easiest way is to go into IE, goto the options menu (gear) > Internet Options > Programs tab > Set IE as the default
Just encountered this question, and while the other answers helped to a point, I found myself without any aspx pages in my mvc app.
Changing the default browser through internet settings didn't work, so in the end, I added a web form manually, right-clicked in and selected 'Browse With' and then was able to set the default from there.
Apparently from Visual Studio 2012 and up, you can choose it in the toolbar:
As explained in Visual Studio 2010 keeps changing my default browser:
In earlier versions, you could use a Visual Studio extension called World of VS Default Browser Switcher , as a solid workaround to the problem.
I found this tool where you can view your application either in IE, Chrome, Firefox, etc. Check it here: How to view your MVC Application in different browsers

Default Browser- Visual Web Developer Express 2010

I am trying to debug a Windows Azure WebRole which is an MVC3 project, but I want it to launch in any browser of my choice.
The Windows Azure is set as the Startup Project and launches the MVC3 project WebRole.
I am using Visual Studio Web Developer Express 2010.
I have previously stabbed in the dark by setting the following properties as in the image below but to no avail:
I then decided to set the project to not independently launch a page as above.
Is there a way to setup a default browser with the above scenario AND without changing my Windows default browser?
I've gotten around this in the past by adding in an ASPX or HTML page to the project and then right clicking it and selecting Browse With. You can then change the default browser in there without having to change your default browser within windows.
I haven't tried this with the Express edition however, but I don't see why they wouldn't include it in there.
You can delete the file afterwards and it will still retain the setting.
How about this:
WoVS Default Browser Switcher
http://visualstudiogallery.msdn.microsoft.com/bb424812-f742-41ef-974a-cdac607df921
You right on the page shown in solution explorer and then browse with whatever browser you want to set and add it as default browser.

How to switch default browser for debug asp.net in visual studio 2008 / 2010?

Since system install the default browser was opera but suddenly become IE in both 2008 and 2010 versions. Default browser in my system is opera. How I can switch make Opera default for debug again?
In Visual Studio 2010 you can right click any aspx file in Solution Exlorer and you get an option of Browse With in the Context menu. Select Browse with and you get the list of browsers in the system. There you can select the default browser.
Add an otherwise unneeded HTML page to your app via right-clicking the project and selecting Add > HTML Page, then right-click that page and select "Browse With" For more detail, see Runscope API Tools' answer here: Set Google Chrome as the Debugging Browser in Visual Studio

Resources