TFS与同时 Codeplex(源代码控制)
有人对此有办法吗?
我们有一个商业/内部项目。有些库还可以在 Codeplex 上的 LGPL 下双重使用。并非所有源代码都应该上传到那里(不是每次签入),但我希望定期上传,最好是“定期发布”/官方发布。每当我们在这些公共图书馆上有更稳定的状态时,这就会像每周一样触发。
有人知道如何做到这一点吗?我当前的方法是:
- 将两个文件夹层次结构映射到 Codeplex 上的内部 TFS 和外部 TFS 位置。
- 创建一个将在 codeplex 上签出的脚本,从我们发布的项目的内部目录复制所有代码
- 在 codeplex 上签入。
只要我们“愿意”,就可以手动触发该脚本。我们还将以这种方式上传生成的 dll(希望如此),因为我们不会随代码一起分发我们的官方签名密钥。
有人有更好的主意如何处理这个问题吗?
Anyone an approach to this?
We have a commercial / inhouse project. SOME of the libraries are also dual available under LGPL on Codeplex. Not all source codde is supposed to go up there (not every checkin), but I would like to have regular uploads happening, preferably for "regular releases" / official releases. This will be triggered like weekly, whenever we have a more stable status on those public libraries.
Anyone an idea how to do that? My current approach is:
- Have two folder hierarchies mapped to the internal TFS and the external TFS location on Codeplex.
- Create a script that will check out on codeplex, copy all code over from the internal directory for those projects we publish
- Do a checkin on codeplex.
This script can the nbe triggered manually whenever we "feel like it". We will also upload the the generated dll's in this way (hopefully), as we do not distribute our official signature keys with the code.
Anyone a better idea how to handle this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
最好的方法可能是使用 TFS 集成平台 在服务器之间进行同步。您可以随时开始同步,并选择同步自上次同步以来的所有更改或仅同步顶部的部分。
TFS 集成平台具有内置服务或命令行功能以及用于配置同步的漂亮 UI。
Probably the best approch would be to use the TFS Integration Platform to Sync between the servers. You can start the sync any time you like and choose to sync all the changes since the last sync or just the slice off the top.
The TFS Integration Platform has a build in service or command line untility and a nice UI for configuring the sync.
有趣的问题。我认为你的方法是合理的,但你可能想加入一个同步过程,比如 SyncBack 或 BeyondCompare 它将查看两个目录并在适当的情况下进行更新。我对 SyncBack 有一些个人经验,您可以对其进行广泛的配置,告诉它要复制哪些文件以及要忽略哪些文件。
我将脚本设置为按需运行并按计划运行。
Interesting problem. I think your approach is sound, but you may want to throw in a synchronization process with something like SyncBack or BeyondCompare where it will look at the two directories and update where appropriate. I have some personal experience with SyncBack, which you can configure pretty extensively to tell it which files to copy, and which to ignore.
I'd set up the script to run on demand and on a scheduled basis.