开发者

Launch ASP.Net project after build

开发者 https://www.devze.com 2022-12-21 20:59 出处:网络
When working with an ASP.Net application, when I rebuild the solution, I would like it to automatically refresh the开发者_StackOverflow中文版 current version thats running through the integrated serve

When working with an ASP.Net application, when I rebuild the solution, I would like it to automatically refresh the开发者_StackOverflow中文版 current version thats running through the integrated server in the browser.

I have looked through post build commands and afterbuild targeting but I have not been successful so far. I would like to do this straight through VS2008 if possible without needing to install anything extra, put if thats not possible then any solution would do!

Is this possible?


The simplest way to do this is with AutoIt

Create a script with the following code in it

WinActivate("Enter the name of your web app here")
Send("^{F5}")

Next put the script into a batch file and call the batch file in the postBuild event. This will refresh the page after successful build.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号