Visual Studio 2010 中的 SourceSafe 错误 - 无法编辑文件 - 当前用户已在其他位置检出文件
当我尝试编辑文件时,我在 Visual Studio 2010 中收到 SourceSafe 相关错误消息:
File is already checked out by the current user in a different location
背景:
- 出于某种原因,源安全将文件保存在 3 个目录深处。
- 例如,解决方案文件位于: VS2010Apps\CCP_Utility\CCP_Utility\CCP_Utility\
- 解决方案文件应位于根目录中:VS2010Apps\CCP_Utility
- 我将文件移动到 VS2010Apps\CCP_Utility 以创建此错误,现在我无法编辑我的项目....
问题:
- 如何再次编辑我的文件并保持正确的目录结构???
- 我是否只需删除源安全文件并将其重新添加到源安全还是什么?
SourceSafe Related Error message I got in Visual Studio 2010 when I tried to edit a file:
File is already checked out by the current user in a different location
Background:
- For some reason source safe saved the files 3 directories deep.
- For Example, The solution files were located in: VS2010Apps\CCP_Utility\CCP_Utility\CCP_Utility\
- The solution files should be in the root directory: VS2010Apps\CCP_Utility
- I moved the files to VS2010Apps\CCP_Utility to create this error and now I can't edit my project....
Question:
- How can I edit my files again and keep the correct directory structure???
- Do I Just delete the source safe files and re-add it to source safe or what?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
听起来 VSS 期望这些文件位于特定目录中。解决这个问题:
It sounds like VSS is expecting those files in a particular directory. To solve this:
当我的工作机器被更换时,我就发生了这种情况,并且我忘记在更改之前签入旧机器上的一些文件。我想要使用该文件的本地副本,但 VSS 将其标记为在另一台机器 [我的旧机器] 上签出。
我刚刚打开 Source Safe Client,浏览到受影响的文件并签入它们:客户端询问我是否希望继续使用本地文件(是) - 然后在 Visual Studio 中重新加载项目。
This happened to me when my work machine was replaced and I had forgotten to check in some files on my old machine before the change. My local copy of the file was the one I wanted to work with, but VSS had it marked as checked out on a different machine [my old machine].
I just opened the Source Safe Client, browsed to the affected files and checked them in: the client asks if I wish to proceed using the local file (Yes) - then just reloaded the project in Visual Studio.