What is the best way to add into the build/compile script of an Asp.net project to initiate a IIS to restart the website on DLL rebuild instead of the first request to the site.
Current Process
- Compile Project
- Wait
- Hit APSX Page
- IIS starts reload
- Wait
- Page loads
Ideal process:
- Compile Project & Reload IIS
- Wait
- Hit APSX Page
- Page loads
The first way I though of was add a request to just hit one of the pages in the "Post-Build events". Just wondering best practices. This would be similar to "Start" which opens a page immediately on build.
Update: The reason I would like to accomplish this is for just for efficiency. I would the to encapsulate the compile time and the restart time into one batch to save on time on step 4 below
- VS: ctrl+shift+b
- Wait for visual que "Build succeeded".
- Broswer: F5.
- Wait for IIS reload. (as well as Hit kbd>F5 in unanswered questions in SO)
- Test page