使用 msbuild 脚本回收应用程序池
我正在使用 MSBuild 构建和部署网站,在部署之前我需要回收应用程序池,我如何从 msbuild 脚本中执行此操作? (我不想重新启动IIS只是回收应用程序池)
I'm using MSBuild to build and deploy the website, Before deploying i need to recycle the Application Pool, How can i do this from msbuild script?
(I do not want to restart the IIS just recycle the application pool)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
为什么不使用扩展包:
http://www.msbuildextensionpack.com/help/4.0.4.0/index.html
它有一个任务:
应该按照您的要求执行。
Why don't you use the extension pack:
http://www.msbuildextensionpack.com/help/4.0.4.0/index.html
It has a task:
That should do what you ask.
该命令是
您可以使用
任务在 msbuild 目标中执行它。The command is
You can execute it within msbuild target using
<Exec>
task.