使用MSBuild脚本重新整理Apppool [英] Recyling apppool using msbuild script

查看:85
本文介绍了使用MSBuild脚本重新整理Apppool的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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)

推荐答案

为什么不使用扩展包: 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

它有一个任务:

<MSBuild.ExtensionPack.Web.Iis7AppPool TaskAction="Recycle" Name="MyAppP"/>

这应该按照您的要求进行.

That should do what you ask.

这篇关于使用MSBuild脚本重新整理Apppool的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆