6

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?

1 Answer 1

6

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

1
  • 2
    Thanks Jonesy - that was exactly it. Ya know, I have probably seen that screen a thousand times, and never really stopped to see what it all meant. Been driving me crazy for years. What an epiphany. Sep 2, 2014 at 18:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.