Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop Visual Studio from starting the currently selected/opened HTML page when debugging

If I have a c# web application project, such as a MVC project, and I create/add a .HTML file, and I am editing the .HTML file, when I start the debugger it does not start normally, instead it starts with the .HTML file I am currently editing. I would prefer it start normally like a MVC project, using the default route.

Is this configurable? Can I tell VS that even if the current context is a .HTML page, that it should ignore that fact, and start as if there were no file currently in context?

like image 467
barrypicker Avatar asked Sep 30 '22 23:09

barrypicker


1 Answers

right click on your Web Project:

Properties -> Web -> Start Action

You can set it to a specific page, rather than the (annoyingly) default Current Page.

VS2013

like image 196
Jonesopolis Avatar answered Oct 03 '22 03:10

Jonesopolis