在Visual Studio 2012中永远不会调用IVsPersistHierarchyItem2.SaveItem [英] IVsPersistHierarchyItem2.SaveItem is never called in Visual Studio 2012

查看:64
本文介绍了在Visual Studio 2012中永远不会调用IVsPersistHierarchyItem2.SaveItem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在编写一个以TFS作为源代码控制工具的VS扩展项目.该场景包括一些基本操作,例如签入,签出等.

We are writing a VS extension project with TFS as the source control tool. The scenario includes some basic operations such as checkin, checkout, etc.

我们发现,当我们尝试从待更改的窗口"中签入时, VS 2012版本,我们无法获得&sb> IVsPersistHierarchyItem2.SaveItem(..),这应该给我们一个指向IUnknown的IntPtr 层次结构项的界面已保存.但我们只是无法接到这个电话. (在Visual Studio 2010环境中,没有这样的问题,如果我们从VS 2012中的类视图签入,也没有问题.)

We find that, when we try to check in from the "pending change window" of VS 2012, we can't get IVsPersistHierarchyItem2.SaveItem(..), which should give us a IntPtr pointing to the IUnknown interface of the hierarchy item saved. But we just can't get this call. (In Visual Studio 2010 environment, we have no such issue, if we checkin from class view in VS 2012, there is no issue either.)

我们还检查了IVsPersistHierarchyItem2.IsItemDirty(...),发现该参数将显示1,表示它很脏.没错,VS应该给我们SaveItem(),对吗?

We also check the IVsPersistHierarchyItem2.IsItemDirty(...), and find that the paramenter will out 1, means it is dirty. That is correct, and VS should give us the SaveItem(), is that correct ?

这是Visual Studio待更改窗口的错误吗?你们能请问一下吗?在此先多谢:)

Is it a bug of Visual Studio Pending change window? Can you guys kindly have a check about that ? Many thanks in advances :)

推荐答案

谢谢您的提问.

我正在尝试让熟悉此主题的人进一步研究此问题.可能会有一些时间延迟.感谢您的耐心.
 
感谢您的理解和支持.

I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
 
Thank you for your understanding and support.

最好的问候


这篇关于在Visual Studio 2012中永远不会调用IVsPersistHierarchyItem2.SaveItem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆