Hi,
We create a custom project like C#, c++ project in visual studio.
We want to support different source control provider. Currently we have supported TFS.
Now when we want to support AnkhSVN, we found the issue below:
When adding a new model file, the plus icon cannot display before the model file.
Since AnkhSVN is open source, after debugging, we found that:
When it gets glyph status, SVN cannot get the correct value. The status is None instead of ShouldBeAdded (expected)
The root cause is that OnAfterOpenProject(IVsHierarchy pHierarchy,int fAdded)
pHierarchy is a Windows runtime object and is added to_projectMap(Here it's the ProjectNode)
While in TrackProjectChanges called byOnAfterAddFilesEx
internalbool TrackProjectChanges(IVsSccProject2 project, outbool trackCopies)
{
// We can be called with a null project
SccProjectData data;
if (project !=null&& _projectMap.TryGetValue(project,out data))
{
The project is COM object. That's why _projectMap cannot get the value since it includes the Windows Runtime Object as the key.
However, in C# project, Visual Studio return both the COM Object.
Question:
Is there any way that can make the pHierarchy as a COM Object OnAfterOpenProject(IVsHierarchy pHierarchy, int fAdded)?
Regards,
Lyle