Question

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.

Was it helpful?

Solution

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.

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top