.NET解决方案下的部署工具

发布于 2024-07-12 07:50:28 字数 855 浏览 3 评论 0原文

我们都用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

野心澎湃 2024-07-19 07:50:28

我在这里写了一篇非常详细的博客文章,使用 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基本流程非常简单:

  • 使用 teamcity 构建服务器 我从 SVN 存储库下载
  • 我构建站点并将其部署到构建服务器上的本地文件夹
  • 启动支持名为 WinSCP 的脚本的命令行 FTP 客户端
  • 我使用 MSBUILD 任务 EXEC ( http://winscp.net/)
  • 上传我的所有网站内容
  • 选择[插入饮料]

,然后确保我只部署 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:

  • Using a teamcity build server i download from my SVN repo
  • I build and deploy the site to a local folder on the build server
  • I fire a command line FTP client that supports scripting called
  • WinSCP using the MSBUILD Task EXEC (http://winscp.net/)
  • Upload all my sites content
  • Have [insert beverage] of choice

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:

美胚控场 2024-07-19 07:50:28

我强烈建议NSIS,你可以在论坛

I strongly suggest NSIS, you can get a lot of help on the forums.

遥远的绿洲 2024-07-19 07:50:28

如果您有自残倾向,可以查看 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).

明媚如初 2024-07-19 07:50:28

我们在这里使用 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.

迷乱花海 2024-07-19 07:50:28

设置和部署项目在过去为我提供了很好的简单设置,例如创建虚拟目录和打包文件(例如文档等)。

如果您想要更多功能,请查看 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文