如何取消 Visual Studio NewPendingChange 事件?

发布于 2024-08-03 08:33:58 字数 188 浏览 3 评论 0原文

我正在尝试以编程方式拦截并取消用户在 TFS 中签出文件的尝试。

我是否正确地认为解决此问题的正确方法是在 Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer 中处理 NewPendingChange ?

从事件处理程序取消事件的正确方法是什么?

I'm trying to programmatically intercept and cancel a user's attempt to check out a file in TFS.

Am I correct in thinking that the proper way to go about this would be to handle the NewPendingChange in a Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer ?

What is the proper way for canceling the event from its event handler?

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

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

发布评论

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

评论(1

清音悠歌 2024-08-10 08:33:58

我错了! TFS 确实允许我禁用 sln/csproj 文件的合并和多次签出!

在“Team Foundation Server 设置 > 源代码控制文件类型...”对话框中,我能够添加新的文件类型(一种用于 sln,一种用于 csproj),并将它们的文件合并属性设置为“禁用”。就像魅力一样。

太糟糕了,我仍然不知道如何回答我原来的问题 - 如何取消 NewPendingChange 事件。

I was wrong! TFS does allow me to disable merge and multiple check outs on sln/csproj files!

In the "Team Foundation Server Settings > Source Control File Types..." dialog I was able to add new file types (one for sln and one for csproj) and set the File Merging attribute on them to "Disabled". Works like a charm.

Too bad I still don't know how to answer my original question - how to cancel a NewPendingChange event.

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