How to get csproj file item RRS feed

  • Question

  • Hi,


    I'm writing add-in that does check in. It contains tree view (just like in pending checkins window). But it doesn't show files *.csproj and it sub file *.csproj.vspscc. I cannot figure out how to acces those files while walking thorugh opened solution, and check whether it is checked out or not. Any ideas how can I show user that project files are checked out and allow him to check them in?


    Thanks, Paweł

    Thursday, June 7, 2007 11:04 AM

All replies

  • Uff, I have managed to acces csproj file item:


    Code Snippet

    if (_dte.SourceControl.IsItemCheckedOut(projectItem.get_FileNames(0)))


    TreeNode nodeItem = new TreeNode(projectItem.Name);

    nodeItem.ImageIndex = ImageSupport.GetImageIndex(projectItem.get_FileNames(0));


    _solutionCheckedOutItems.Insert(0, new ProjectItemInfo(projectItems.ContainingProject.UniqueName, projectItem.get_FileNames(0)));

    nodeItem.Tag = _solutionCheckedOutItems[0];



    but I still don't know how to access my *.csproj.vspscc file.



    Thursday, June 7, 2007 11:29 AM