.NET解决方案下的部署工具
我们都用 Web 应用程序、Windows 应用程序、数据库、帮助文件、配置文件和注册表值编写代码,无论是小型(如一个 .exe)还是大型应用程序(完整的解决方案)...
我的问题很简单,在我看来,现在我需要在一个安装设置中部署一个 Web 应用程序和一个 Windows 应用程序:
你用什么来部署 您的应用程序,关于创建 帮助文件、数据库脚本等 我们可以创建一个数据库并 表,创建一个虚拟 Web 应用程序的目录, 添加要使用的注册表值 我们的 Windows 应用程序?
我只是打开“设置和” 从 Visual Studio 2008 部署,但是我的问题还是它缺少很多这样的功能? 有什么最糟糕的尝试吗?
我知道他们在公司使用 Inno Setup,但它并没有完成我所知道的所有内容,任何好的教程应该看到吗? 在我的搜索中,我发现一些产品 Visual Studio Gallery,但没有一个是一体化的:(
谢谢。
We all do code, small (like one .exe) or big applications (complete solutions) with web applications, windows applications, databases, help files, configuration files and registry values...
my question is simple, in my opinion that is, now that I need to deploy a web application and a windows application in just one installation setup:
What do you use to the deployment of
your applications, regarding creating
of help files, database scripts so
we can create a database and
tables, create a virtual
directory for the web applications,
add registry values to work with
our windows application?
I just open Setup & Deployment from Visual Studio 2008, but is it me or it lack a lot of such features? is there any thing worst a try out there for this?
I know Inno Setup that they use here in the company, but it does not do all, any good tutorial that I should see?
In my search I found out some products in Visual Studio Gallery, but none does all-in-one :(
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我在这里写了一篇非常详细的博客文章,使用 TeamCity 和 Web 部署项目来自动化构建和部署:
http://www.diaryofaninja.com/blog/2010/05/09/automated-site-deployments-with-teamcity- deployment-projects-amp-svn
然后我添加了此内容以显示 FTP 添加
http://www.diaryofaninja.com/blog/2010/09/21/continuous-integration-tip-1-ndash-ftp-deployment
A基本流程非常简单:
,然后确保我只部署 SVN 存储库的主干,并在合并之前开发和测试分支中的所有内容 - 这样只有经过测试的内容才会被部署。 将自动化测试添加到您的构建周期中,您就获得了天作之合。
一些很棒的免费工具包括:
提供此功能的一些非免费在线服务:
I have written a pretty detailed blog post using TeamCity, and Web Deployment projects to automate build and deployment as a starter here:
http://www.diaryofaninja.com/blog/2010/05/09/automated-site-deployments-with-teamcity-deployment-projects-amp-svn
I have then added to this to show FTP addition
http://www.diaryofaninja.com/blog/2010/09/21/continuous-integration-tip-1-ndash-ftp-deployment
A basic process flow is pretty simple:
I then make sure that i only deploy the Trunk of my SVN repo, and develop and test everything in an branch before merging - this way only tested stuff gets deployed. Add Automated testing to your build cycle and you've got a match made in heaven.
Some great free tools to get going are:
Some non-free online services that provide this:
我强烈建议NSIS,你可以在论坛。
I strongly suggest NSIS, you can get a lot of help on the forums.
如果您有自残倾向,可以查看 WiX (http://wix.sourceforge.net)。 WiX 被 Microsoft 的一些产品团队使用,实际上是由 Microsoft 员工维护的,但这几乎是他们在 SourceForge 上唯一的开源项目。
它非常强大,并且具有可以完成您想要的所有功能,但是这一切都是通过 XML 完成的,并且使用起来可能有点棘手。 好的一面是,一旦设置完毕,它就会与自动化构建集成,因为它支持在 Visual Studio 中(MSBuild 支持)。
If you are into self harm you could look at WiX (http://wix.sourceforge.net). WiX is used by some of the product teams at Microsoft and is actually maintained by Microsoft employees, but it is pretty much their only open source project on SourceForge.
It is very powerful and has features for doing all that you want, but it is all done in XML and can be a little tricky to get going. On the bright side once it is set up it integrates will with automated builds because it has support for being inside Visual Studio (MSBuild support).
我们在这里使用 FinalBuilder 和 FinalBuilder 服务器。 允许您使用相对良好的构建界面构建复杂的构建过程,并从 Web 应用程序或计时器启动它们。
我们的“普通”项目将从 SVN 获取源代码,将修订号添加到版本中并构建,获取数据库脚本并升级或重建数据库并部署到网络服务器,将其压缩以用于电子邮件发送,甚至为其创建 ISO 。
We use FinalBuilder and FinalBuilder server here. Lets you build complicated build processes using a relatively nice build interface and launch them from a web application or on a timer.
Our "average" project will grab source from SVN, add the revision number to the version and build, grab the database scripts and upgrade or rebuild the database and deploy to either a webserver, ZIP it up for emailing or even create an ISO for it.
设置和部署项目在过去为我提供了很好的简单设置,例如创建虚拟目录和打包文件(例如文档等)。
如果您想要更多功能,请查看 WIX
The setup and deployment projects have served me well in the past for simple setups like creating virtual directories and packaging files such as documentation, etc.
If you want more power have a look at WIX