如何将图标覆盖添加到源代码管理资源管理器中的文件夹图标?
我有兴趣在源代码管理资源管理器中将文件夹标记为“活动”、“已存档”和“已发布”,以便团队更轻松地查看哪些分支处于活动状态。 我对 VSX 有点熟悉,所以一旦我知道从哪里开始,我就可以取得进展,但我需要从哪里开始的帮助。
我想要做的一个例子是 VisualSVN,它将文件的状态放置在解决方案资源管理器中。 我不确定 TFS 是否允许我在文件夹上设置属性,以便如果移动文件夹,状态也会随之移动。 如果需要,我可以创建一个名为 BranchStatus.xml 的文件并读取该文件来设置图标。
如果您知道我应该在 MSDN 上查看哪些命名空间和 VSX/DTE 对象,请告诉我。 我很感激你的帮助。
I am interested in marking folders as Active, Archived, and Released in Source Control Explorer so it is easier for the team to see which branches are active. I am somewhat familiar with VSX so once I know where to start I can make progress, but I need help with where to start.
An example of what I want to do is VisualSVN which places a status of the files in Solution Explorer. I am unsure if TFS will allow me to set a property on the folder so that if the folder is moved that status will move with it. If I have to I could create a file called BranchStatus.xml and read that file to set the icon.
If you know which namespaces and VSX/DTE objects I should look into on MSDN please let me know. I appreciate the help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我们决定在发布下一个版本后将分支移至名为 Archive 的文件夹中。 这样每个人都知道它只是作为历史参考。
What we have decided to do is move the branch into a folder named Archive once we release the next version. This way everyone knows it's just there for historical reference.
简单回答是不。 TFS 团队确认 VS2008 中的源代码管理资源管理器不具有可扩展性。 VS2010中可能有这个选项。
The simple answer is no. The TFS team confirmed there is not extensibility for the Source Control Explorer in VS2008. There may be this option in VS2010.
回应您的评论:
只是作为一个想法。 使用命令行,您可以为任何人设置和修改工作区(如果您有足够的权限)。 我认为也可以为其他工作空间(即你的同事)隐藏一个分支。
如果需要,仍然可以访问这些内容,但不会自动检索。
不如你想要的那么好,但它可以工作......
瓦卡诺
In response to your comment:
Just as an idea. Using the command line you can setup and modify workspaces for anyone (if you have sufficient privileges). I thing it is also be possible to cloak a branch for other workspaces (ie your co-workers).
The stuff could still be accessed if needed, but would not be automatically retrieved.
Not as good as what you were going for, but it could work...
Vaccano