views:

213

answers:

2

Is there a way to have MSBuild create an instance of IIS on another remote machine?

I do the builds (which occur locally using TeamCity AFAIK), but would like the code to be pushed up to our testing server once the build is completed. I am using IIS 6.x (Windows XP dev and Windows 2k3 Server for testing).

+1  A: 

Did you check out MsBuild Extension Pack? It has a task called MSBuild.ExtensionPack.Web.Iis6Website wihch can be used to create a web site.

Disclaimer: I have never actually used that task with remote support, but the documentation claims is it supported :)

EDIT: you could also have a look at the WebDirectoryCreate task in the MSBuild Community Tasks project.

Eric Eijkelenboom
I couldn't seem to find any documentation on MSBuild Extension Pack that shows remote setup. I got it working locally, but that doesn't seem to help. The same with Community Tasks.
Dan
A: 

Another option is to use MSDeploy (which you can call from MSBuild). With MSDeploy you can install a Remote Agent Service which listens for actions to be executed on the target IIS server.

Sayed Ibrahim Hashimi