I know how to enable Edit and Continue in ASP.NET Web Application projects (see here), however, I found no information as to how to achieve the same thing in ASP.NET Web Site projects.
Is this feature available in Web Site projects? If no, it seems that converting our Web Site project to a Web Application is really worth doing.
Edit and Continue is a time-saving feature that enables you to make changes to your source code while your program is in break mode. When you resume execution of the program by choosing an execution command like Continue or Step, Edit and Continue automatically applies the code changes with some limitations.
There is a free extension to resolve this issue: Disable No Source Available Tab available for from the VS Market Place. This small extension will prevent the tool window with title "No Source Available" from appearing in Visual Studio, and preserve the focus on the currently active tab.
Apply the code changes using the new apply code changes (ALT-F10) button in your Visual Studio toolbar (next to the Continue button). Note that saving the files is not required when using Visual Studio, giving you the flexibility to quickly change code and keep going.
With a website project edit and continue is disabled by default. To enable it you must go to: Properties->Web->'Servers' section, check 'Enable Edit and Continue'. Then, if you break your code you can edit it and continue. You cannot edit the code if you are not stepping through it. i.e. you have to break before editing.
Although you can't edit the code while stepping through with the debugger, Web Site projects allow you to simply edit the source code and then reload the page. This is almost as useful as "Edit and Continue." ASP.NET dynamic compilation allows you to change the source code which triggers the automatic recompile.
Here is a related article on Understanding ASP.NET Dynamic Compilation
This page is also useful and has a section called Comparing Web Site Projects and Web Application Projects
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With