使用PowerShell脚本在IIS上构建和部署WCF服务的步骤
答
有一个PowerShell管理单元的IIS 7,您可以在这里找到: https://www.iis.net/learn/manage/powershell/getting-started-with-the-iis-powershell-snap-in
随着该管理单元,可以非常方便的添加/配置应用程序池,创建IIS应用程序,备份IIS配置文件等。
您的问题的“部署”部分可以轻松地通过作为postbuild事件运行的PS脚本实现。
看到我的答案在这里:http://stackoverflow.com/questions/9460744/how-to-deploy-my-wcf-service-on-iis-6-0/9460906#9460906它涵盖了非常详细的IIS托管 – 2012-02-29 06:21:00
任何最终的解决方案与完整的源代码示例工作? – Kiquenet 2013-06-25 06:26:00
我没有确切的一个,但这里是很好的示例@ [link](http://www.iis.net/learn/manage/powershell/an-introduction-to-windows-powershell-and-iis#02) – 2013-06-26 06:58:57