TFS 2008 源代码管理配置
希望这里的每个人都做得很好!在这种情况下,我需要知道是否有一种方法可以配置 TFS 源代码控制,以便每当我进行签入时,我想先执行“获取最新版本并构建本地解决方案”,然后才能实际执行签入...因为这将保证我每次签入时构建都会成功。
但是我不确定是否有办法在 TFS 中自动配置它?
目前,我总是先执行“获取最新版本”,然后在构建成功后最终签入代码之前构建解决方案。
任何建议或帮助将不胜感激。
Hope everyone here are doing great! Here is a situation where I need to know if there is a way to configure TFS source control in such a way that whenever I do a checkin I want to do a "Get Latest and build the local solution" first before I could actually do a checkin... as this would gaurantee me that every time I do a check in that the build will succeed.
However I am not sure if there is a way to automatically configure it in TFS?
Currently, I always do a "Get Latest" first, then I build the solution before I finally checkin the code provided the build succeeds.
Any suggestions or help will be deeply appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您将不得不等待 TFS 2010 及其“门控签入”功能。
更多信息 此处。
如果您坚持使用 TFS 2008 执行此操作,您可以通过 Visual Studio 插件在客户端执行此操作,该插件拦截签入命令或提供新的“安全签入”命令,然后执行获取和构建。
You will have to wait for TFS 2010 and it's "Gated Checkin" Feature.
More Info here, for example.
If you insist on doing this with TFS 2008 you could do it client side through a Visual Studio Add-In which either intercepts the checkin-command or offers a new "Safe Checkin" command, which then executes the get and build.