Visual Studio TeamExplorer 禁用项目签入
我需要在我的解决方案中禁用多个项目的签入操作。我需要它来确保自己不会将更改上传到我不想更改的项目。可以使用团队资源管理器吗?
I need to disable check-in operation for several projects in my solution. I need it to ensure myself from uploading changes to projects which I don't want to change. Is it possible with Team Explorer?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
TFS 仅跟踪通过 Visual Studio 所做的更改。在你的情况下,你需要在本地编辑文件,但 VS 不知道。不幸的是,这很困难,因为你的转换器是在 VS 中运行的。
步骤是
与此相关的一些风险。
如果 SLN 文件经常更改,这将是一个巨大的痛苦,因为您的本地更改将被覆盖。但这是无法避免的,因为如果您以正常方式“检查”它们,这个问题仍然存在。
您将无法向 SLN 添加/删除项目,因为您的 VS 版本错误。您需要让使用 vs 2008 的人员“添加...”该项目,然后您必须获取最新的 SLN 并再次运行转换步骤。
TFS only tracks changes that are made through Visual Studio. In your case, you need to edit the files locally, but without VS knowing. Unfortunately, this is difficult, because your converter is running in VS.
The steps would be
Some risks associated with this.
This is a huge pain if the SLN files get changed very often, because your local changes will be overwritten. This cannot be avoided however, because this problem would still exist if you had them 'checked out' the normal way.
You will not be able to add/remove projects to the SLN because your VS version is wrong. you will need to get someone with vs 2008 to "Add..." the project, then you'll have to get latest on the SLN and run the conversion steps again.
您无法执行以下操作之一的任何原因:
Any reason why you cant do one of the following:
您可以更改 TFS 中文件夹的权限以删除签入权限。
但这可能是一个相当大的锤子,为什么不恢复(意外地)所做的任何更改呢?
You could change permissions on the folders in TFS to remove checkin rights.
But this could be a rather large hammer, why not just revert any changes to do (accidentally) make?
就我个人而言,我会创建一个分支。
Personally I'd create a branch.