解决方案资源管理器中文件上的蓝色问号 [英] Blue question mark on files in solution explorer
问题描述
打开通过P4VS绑定到Perforce的解决方案时,我在VS2012解决方案资源管理器中的文件上经常出现蓝色问号.
I often get blue question marks on files in my VS2012 Solution Explorer when opening a solution bound to Perforce through P4VS.
看起来有些东西很难与软件仓库/工作区/其他同步".点击刷新视图"始终可以解决问题,但我每天都在做此事,变得越来越疲倦:
Looks like something is having trouble to "synchronize" with the depot/workspace/whatnot. Hitting "Refresh View" always solves the issue but I'm growing tired on doing this everyday:
这是我的VS版本:
Microsoft Visual Studio Professional 2012
Version 11.0.61030.00 Update 4
还有P4VS:
2014.1.85.4506
这在P4VS版本上已经持续了几个月,似乎有时会影响单个文件,有时会影响整个项目,而没有明显的模式.
This is persistent across P4VS versions for a few months now, and seems to be affecting sometimes individual files, sometimes entire projects, with no apparent pattern.
我该如何诊断出问题了,是服务器问题,VS问题还是工作区问题?... Perforce Source Control输出没有什么特别之处.
How can I diagnose what's going wrong, be it a server issue, a VS issue, a workspace issue?... The Perforce Source Control output shows nothing special.
实际上,它不是整个文件夹,而是整个项目.看起来,即使刷新项目可以解决"该问题一次运行,重新打开该解决方案也会使问题重新出现.我认为对于单个文件,刷新它们可以彻底解决此问题.我会再尝试一点以确认这一点.
Actually it's not entire folders, it's entire projects. It appears that even if refreshing a project "fixes" the issue for one run, re-opening the solution brings it back. Whereas I think that for individual files, refreshing them solves the issue once and for all. I'll play with it a bit more to confirm that.
推荐答案
这对我解决了"这个问题,至少对于整个带有蓝色问号的项目来说都是如此:
This "solved" the issue for me, at least for the entire projects that went blue-question-marked:
1)工具>选项
1) Tools > Options
2)源代码控制
3)Perforce-常规
3) Perforce - General
4)选中选项将解决方案/项目作为目录 已选择"
4) Tick the option "Treat Solution/Project as directory when selected"
不知道为什么,但是那每天对我来说都不那么令人烦恼.感谢Perforce的建议.
Not sure why but that's one less annoyance for me every day. Thanks to Perforce support for suggesting that.
这篇关于解决方案资源管理器中文件上的蓝色问号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!