开发者

Creating IIS Instance over network using MSBuild

开发者 https://www.devze.com 2022-12-27 03:24 出处:网络
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

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开发者_StackOverflow社区. I am using IIS 6.x (Windows XP dev and Windows 2k3 Server for testing).


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号