在 Nant 中以编程方式创建 IIS6 网站/应用程序池
我对 Nant 比较陌生,我想做的是在 IIS6 中创建一个新网站和 AppPool 的任务,
有没有办法在 Nant 中做到这一点?
本质上,该任务需要设置所有适当的属性,包括 .net Framework 的正确版本。
理想情况下,我还想检查该站点是否已存在于 IIS 中。
I'm relatively new to Nant, what i'd like to do is have a task that creates a new Website and AppPool in IIS6
is there a way to do this in Nant?
Essentially the task would need to set all the appropriate properties including the correct version of the .net Framework
Ideally i'd also like to check if the site is already present in IIS.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您看过NantContrib吗? 它可能会提供一些更好的 IIS 支持,而无需编写您自己的任务(或删除)。
它有一些 IIS 特定任务,例如 iisapppool 和 mkiisdir。
Have you looked at NantContrib? It might provide some better IIS support without having to write your own task (or shelling out).
It has some IIS specific tasks like iisapppool and mkiisdir.
您可以使用 ADSUTIL 从命令行执行此操作,您可以在此处找到更多信息:
http://blogs.msdn.com/david.wang/archive/2007/12/12/howto-create-custom-application-pool- by-commandline.aspx
要在 Nant 中执行此操作,您可以使用 exec 任务。
您打算如何部署您的应用程序? 您仅需要这个来进行本地安装吗? 如果您能给我们更多细节,可能会有更好的解决方案。
You can do this from the command line using ADSUTIL, you can find more information here:
http://blogs.msdn.com/david.wang/archive/2007/12/12/howto-create-custom-application-pool-by-commandline.aspx
To do this in Nant you can use the exec task.
How are you planning on deploying your application? Do you need this just for local installation? There may be a better solution if you can give us some more details.