Visual Studio 2010 "Browse with ..." continues to forget my user post. Anyway?

I am trying to create a custom entry in the Visual Studio 2010 "Browse with ..." dialog box for debugging in Chrome Incognito mode (basically, so I can debug without cache or cookies).

So, I will open a dialog box, click "Add", enter the data:

  • Program Name : "C:\Users\[my-username]\AppData\Local\Google\Chrome\Application\chrome.exe" --incognito
  • Friendly Name : Google Chrome Incognito

I click OK. The --incognito flag offers a dialog box: "The file name ... contains parameters that cannot be verified. Do you want to change your entry?" I click "No" because I know that the command is correct (and because this is the only way to continue).

The new entry is displayed in the list, I click "Set as default", I click "Browse", and my site opens in Google Chrome Incognito in the same way as I wanted.

However, the next time I debug, the site opens in my previous default, and if I reopen the Browse With ... dialog, my Google Chrome Incognito entry disappears.

Extremely frustrating. Does anyone know of a solution?

I looked at the WoVS Default Browser Switcher extension, but it does not seem to allow browser settings to be created.

I also gave this approach to Scott Hanselman. But Visual Studio keeps resetting the browsers.xml file.

+6
source share
1 answer

Try creating a batch file and add the following (change the path if necessary):

 START /d "C:\Program Files (x86)\Google\Chrome\Application" chrome.exe %1 --incognito 

The first argument (% 1) is the URL.

Now use this batch file as "Program Name" if you set the "Browse With" option.

Note. I am using Visual Studio 2010

+3
source

Source: https://habr.com/ru/post/907612/


All Articles