在 Nant 中以编程方式创建 IIS6 网站/应用程序池

发布于 2024-07-07 11:45:29 字数 172 浏览 5 评论 0原文

我对 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

皇甫轩 2024-07-14 11:45:29

您看过NantContrib吗? 它可能会提供一些更好的 IIS 支持,而无需编写您自己的任务(或删除)。

它有一些 IIS 特定任务,例如 iisapppoolmkiisdir

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.

醉生梦死 2024-07-14 11:45:29

您可以使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文