zar*_*zar 11 version-control perforce visual-studio-2010
我正在通过VS2010向perforce添加一个项目,但我不断收到'file' not under client's root项目中所有文件的错误.我似乎无法弄清楚这一点.
这是我在做的事情:
1)打开尚未生效的VS2010项目.
2)我选择将solotion添加到perforce(从文件>源代码管理>添加解决方案菜单).
3)我选择了一个新的工作区.它会调出工作区的属性.根文件夹默认为c:\ Users\My.Name.我将其更改为我的项目所在的文件夹.我也改变了视图,因此它指向depot\main \new_project.
它似乎已经添加了项目,但是当我签入文件时它只是不起作用!它为所有文件提供此错误'file not under client's root'.
我也直接去perforce并检查相应工作区的设置.在仪表板中显示错误:
P4V is having trouble translating the location "c:\Users\user.Name\Documents\Code\My_Project" to a valid workspace location. To filter using this location, drag the folder from the workspace tree to the workspace folder field or include the depot location in your workspace view.
Run Code Online (Sandbox Code Playgroud)
有人可以给我任何指针,为什么这不起作用?
更新 我的工作区映射是这样的
Client: omega
Owner: User.Name
Root: C:\Users\User.Name\Documents\Visual Studio 2010\Projects\Omega
LineEnd: local
View:
//depot/main/omega/... //omega/...
Run Code Online (Sandbox Code Playgroud)
小智 22
如果在"待处理"选项卡打开时出现此错误,则可能是您的问题!您可能没有看到整个过滤器(即某些过滤器可能不在视野范围内).将鼠标悬停在过滤器下方的窗口窗格边框上,直到光标发生变化,以便您可以展开过滤器窗口窗格.有一个过滤器可能会出现"与以下任何文件路径匹配的文件:"确保您没有选择不正确的文件路径.删除过滤器或选择"当前窗口或工作区树选择".