17

I'm using IIS 7 express to test a ASP.Net MVC 3 project on my development machine and normally it keeps running after I finished debugging, which is a good thing so that I can perform small tests directly in the browser without needing to run the project again.

But if I choose the option "Enable edit and continue" on the project properties IIS 7 will only run while debugging the project. Is there a way to change this behavior?

holiveira
  • 4,375
  • 9
  • 35
  • 38

3 Answers3

4

There is global setting in Visual Studio to have 'Edit and Continue' to be off by default for all new projects under Options > Debugging > Edit and Continue.

Mikee
  • 1,499
  • 1
  • 14
  • 22
4

Just in case if you need this feature (IIS to continue running) in ASP.NET Web Forms, instead of pressing F5 (Run), right-click the start page in Solution Explorer and select 'View in browser'.

James Poulose
  • 3,131
  • 2
  • 30
  • 31
4

No, because in order to achieve this, Visual Studio uses a hosting environment that interprets the code being executed.

So, it is only available while debugging.

Paulo Santos
  • 10,978
  • 4
  • 38
  • 56
  • now if i have done editing in project the i just need to Rebuilt and Refresh browser , it will work? – Ravi Mehta Feb 02 '16 at 06:56
  • 4
    Turning off the new "Enable Edit and Continue" in tools>options>debug can do the trick.I put this comment to capture attention here because this answer is accepted and says no way for this but in vs2013+ you can do this . – katmanco Mar 12 '16 at 20:43