开发者

Azure 1.4 / VS 2010 Default Web Browser

开发者 https://www.devze.com 2023-02-21 03:10 出处:网络
I\'m running VS2010 SP1 and Azure 1.4 Tools on Windows 7 SP1. My system default web browser is Chrome. My Visual Studio default web browser is Firefox (right click on .aspx file - Browse with - set de

I'm running VS2010 SP1 and Azure 1.4 Tools on Windows 7 SP1. My system default web browser is Chrome. My Visual Studio default web browser is Firefox (right click on .aspx file - Browse with - set default).

When I hit CTRL+F5 (start without debugging), my cloud service web role starts in Chrome.

When I hit F5 (start with debugging), my cloud service web role opens two windows - one in Chrome, one in Firefox.

I tried devenv /rese开发者_Python百科tsettings to no avail. How do I make VS honor its default?


VS 2010 uses the default browser when you press F5 in a web project, then it caches what your default browser is in %LOCALAPPDATA%\Microsoft\VisualStudio\10.0\browsers.xml, you can find this exact file in your registry under HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\WebBrowser\ConfigTimestamp\CacheFilePath . Try to change your default web browser.


Although this doesn't make sense - it has fixed the problem on two out of two cases: enable the Silverlight debugger on the web project.

  • Right click / properties on web project
  • Web tab
  • Enable ASP.NET and Silverlight

After ticking the Silverlight box, F5 and CTRL+F5 started behaving normally, respecting my Visual Studio default browser.

0

精彩评论

暂无评论...
验证码 换一张
取 消