.NET Injection of a dependency list
Whilst doom scrolling Twitter last night, I came across a tweet by a Norweigan software …
By default Visual Studio creates an entry for each recognised web browser you have installed when you first launch the IDE. We all know that we should be testing our web applications in more than just our favorite browser (after all, our end users may be using any number of browsers).
Visual Studio supports the addition of other browsers; and using this feature you can add other browser modes such as incognito. Why I hear you ask; incognito mode is not just for naughty browsing habits. It also containerised your cookies, and history; so if you are debugging an application that uses an external authentication provider you won’t inherit your existing sessions from other applications (my use case).
Program: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
Arguments: –incognito
Friendly Name: Chrome Incognito
Click OK.
Now you can debug your web application as if you were a first time browser every time!
Thank you to Braydon Anderson for providing the image used in this post's header for free on Unsplash.com.