[译]一键获取多个项目的最新版本
By robot-v1.0
本文链接 https://www.kyfws.com/applications/get-latest-version-of-multiple-projects-with-one-c-zh/
版权声明 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
- 3 分钟阅读 - 1241 个词 阅读量 0[译]一键获取多个项目的最新版本
原文地址:https://www.codeproject.com/Articles/5119/Get-Latest-Version-Of-Multiple-Projects-With-One-C
原文作者:Massimiliano Conte
译文由本站 robot-v1.0 翻译
前言
Get multiple projects with one click, using automation.
一键使用自动化即可获得多个项目.
介绍(Introduction)
有时候,您需要获得多个项目才能发布COOL应用程序的最新版本^这是因为您使用了很多组件,这些组件是由团队中的许多编码人员以及公司中其他团队开发的.因此,为了自动化该任务,我编写了一个使用Microsoft Visual SourceSafe自动化功能的简单应用程序.(Sometimes it happens that you have to get multiple projects to release the last version of your COOL application… this is because you use lots of components, developed from lots of coders in your team and other teams in your company. So, to automate this task, I wrote this simple app that uses the automation feature of Microsoft Visual SourceSafe.)
怎么运行的(How it works)
只需打开应用程序,然后选择(Simply open the application and select the)srcsafe.ini(srcsafe.ini)数据库的文件.小心,(file of your database. Be careful,)您的登录信息将存储在(your login information will be stored in the)*SourceSafeGet.ini(SourceSafeGet.ini)*文件,这样每个人都可以看到它(您的源安全密码,您的源安全USERID)(file, so everyone could see it (your source safe PASSWORD, your source safe USERID)).登录后,您可以一键浏览源安全项目并添加要下载的项目.(. After login, you can browse the source safe projects and add the ones you want to download, in one click.)
笔记(Notes)
请仔细阅读以下说明:(Please read carefully these notes:)
的(The)**得到(GET)**操作无法停止.按下STOP按钮,您可以停止NEXT项目获取.(operation cannot be stopped. Pressing the STOP button, you can stop the NEXT project get.)
文件将是(File will be)**总是(always)**无需覆盖已检查的文件并递归获取所有子项目即可检索.(be retrieved without overwriting your checked files and getting all subprojects recursively.)
再一次,记住(And again, remember that)您的登录信息将存储在(your login information will be stored in the)*SourceSafeGet.ini(SourceSafeGet.ini)*文件,这样每个人都可以看到它(您的源安全密码,您的源安全USERID)(file, so everyone could see it (your source safe PASSWORD, your source safe USERID)).(.)
此应用程序具有教育目的,不应在生产/开发环境中使用.使用此应用程序需要您自担风险(This application has educational purposes and shouldn’t be used in production/development environment. Use this application at your own risk).(.)
最后…(Finally…)
这是我五个小时的开发,可以满足我的需求.随意根据需要修改源代码,也许您可以添加更多的get-options,操作进度等.(This was a five-hours-development to fit my needs. Feel free to modify the source code as you need, maybe you could add some more get-options, operation progress, etc.)
感谢所有CodeProject人员提供有关自动化和SourceSafe对象模型的文章.(Thanx to all CodeProject people for articles about automation and SourceSafe object model.)
许可
本文以及所有相关的源代码和文件均已获得The Code Project Open License (CPOL)的许可。
C++ VC6 Windows Win2K MFC Visual-Studio Dev 新闻 翻译