VB.NET 程序的夜间构建、版本控制

发布于 2024-10-11 05:44:11 字数 280 浏览 0 评论 0原文

我目前有一个夜间构建系统作为 Windows 计划任务运行,调用批处理文件,其工作方式有点像这样:

  • 从 subversion 查看最新版本
  • 修改主可执行文件和库的 AssemblyInfo.vb 文件以设置版本编号为 0.0.0.revision
  • 调用 MSBuild 构建所有内容(包括安装程序)
  • 将安装程序和构建日志上传到 FTP 服务器

这可以正常工作,但步骤 2 很脏且脆弱,我无法想象这做我想做的事的唯一方法。有什么想法吗?

I currently have a nightly build system running as a windows scheduled task, calling at batch file, that works sort of like this:

  • Check out the latest revision from subversion
  • Modify the AssemblyInfo.vb file of the main executable and the librarys to set the version number to 0.0.0.revision
  • Invoke MSBuild to build everything (including the installer)
  • Upload the installer and a log of the build to an FTP server

This works ok, but step 2 is dirty and fragile, and I can't imagine that this the only way to do what I want. Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

单调的奢华 2024-10-18 05:44:11

有几种方法可以解决这个问题。您可能需要查看这篇文章或其他带有 svn 标签的文章(并包含“AssemblyInfo”)。

There are a couple of ways to deal with this. You may want to check this post or others tagged with svn (and containing "AssemblyInfo").

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