I'm following the tutorial on http://www.microsoftvirtualacademy.com/training-courses/introduction-to-asp-net-mvc. And whenever code change are made, the guy simply re-builds, and refreshes the browser tab to view any changes. It doesn't work with the setting I have within Visual Studios 2013. I need to re-build, and click Run again, which opens up a new tab in my browser.
The instructor is Running the application (Ctrl + F5) initially, rather than debugging it.
When a debugger is attached (eg you launch the application with F5 or by hitting the green play arrow), you have to stop debugging before you can rebuild, and when you debug again, or restart, the changed version will open in a new tab.
When you run an application without debugging however, you can rebuild at any time (Ctrl + Shift + B). a new browser tab/window is not launched, but the code in the IISExpress instance is updated, so when you refresh the browser, you see the changes.
Additionally, many changes to the application do not require a rebuild at all. for instance changing CSS, javascript, or other purely markup information. In those cases, you can just save and refresh. I do caution you however to only do this for tweaking CSS, as you may introduce problems in other parts of the code, and not notice them until much later. rebuilding is always a safe bet.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments