如何自动发布多个 ASP.NET Web 应用程序并备份以前发布的文件夹
我们的应用程序是三层应用程序。它有 3 个 ASP.NET Web 应用程序,通过 WCF 和 Web 服务相互通信。我们使用TFS进行版本控制。我们有几个使用不同配置设置的测试环境。现在要发布应用程序,我们从 TFS 获取最新版本,右键单击每个项目,选择发布,选择发布配置文件,然后单击发布进行发布。我们对所有 3 个项目都这样做。此外,我们需要在发布之前备份以前的版本。我们如何才能自动化这个过程?
Our application is a 3 tier one. It has 3 ASP.NET web applications talking to each other via WCF and Webservices. We use TFS to version control. We have several test environments setuped with different configs. At the moment to publish the aplication we get latest version from the TFS, right-click each project, select publish, select pubishing profile and click publish to publish. We do this to all 3 projects. Besides we need to backup previous builds before publishing. How can we automate this process?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有几种方法可以做到这一点。最常见的途径是使用 MSBuild 自动化构建:
http://msdn.microsoft.com/en-us/library/ms171452%28v=vs.90%29.aspx
使用 MSBuild 您可以自动化构建每个项目,备份以前的构建,并通过 Web 部署部署应用程序:
http://www.iis .net/download/WebDeploy
除非你正在做一些疯狂的事情,否则你应该不会遇到太多麻烦。如果您正在寻找更容易使用的东西,我很幸运地使用了独立的构建服务器和 Automated Build Studio:
http://smartbear.com/products/development-tools/build-management/
有很多关于该主题的信息;如果您有任何疑问,请告诉我。祝你好运!
There are a few ways to do this. The most common route is to use automate your builds using MSBuild:
http://msdn.microsoft.com/en-us/library/ms171452%28v=vs.90%29.aspx
Using MSBuild you can automate building each project, backing up your previous builds, and deploy the application via web deploy:
http://www.iis.net/download/WebDeploy
Unless you're doing anything crazy, you shouldn't have much trouble. If you're looking for something a little easier to use, I've had great luck with using a standalone build server and Automated Build Studio:
http://smartbear.com/products/development-tools/build-management/
There's a lot of information out there on the topic; let me know if you have any questions. Good luck!