And*_*sky 4 nant build-automation nantcontrib
是否可以使用NAnt管理IIS Web应用程序?例如停止或启动它?
Nant具有servicecontroller任务,您可以使用该任务停止/启动Web服务器或整个IIS,我通常使用它来停止/启动Web服务器.
<servicecontroller action="Stop" service="w3svc"
timeout="10000" verbose="true" />
Run Code Online (Sandbox Code Playgroud)
有关文档,请访问http://nant.sourceforge.net/release/latest/help/tasks/servicecontroller.html