为什么在我编辑文件时不会自动从 VSS 检出文件? [英] Why don't files automatically get checked out from VSS when I edit them?

查看:30
本文介绍了为什么在我编辑文件时不会自动从 VSS 检出文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这让我发疯并导致工作丢失(至少不多).

This is driving me crazy and has resulted in lost work (not much, at least).

通常,当我在 Visual Studio 中编辑文件时,它应该会自动在源代码安全中检出该文件.在多项目解决方案(例如,具有类库的 Web 应用程序)中,有时尽管退出 & ,但一个项目中的任何文件都不会自动检出重新加载 Visual Studio 可能会暂时解决该问题.此外,项目文件永远不会自动检出.每当我添加/删除代码文件时,我都必须记得明确检查项目文件(否则我们会遇到代码文件未显示在解决方案资源管理器中或尝试加载不存在的文件的问题).

Normally, when I edit a file in Visual Studio, it's supposed to automatically check that file out in source safe. On multi-project solutions (e.g., web app with class libraries), sometimes none of the files in one project would automatically get checked out, though exiting & reloading visual studio may fix that problem temporarily. Furthermore, project files are never automatically checked out. Whenever I add/remove code files, I have to remember to explicitly check out the project file as well (otherwise we'll have issues with code files not showing up in the solution explorer, or trying to load non-existing files).

我们使用的是 VS-2008 和 VSS 2005.你知道我该如何解决这个问题吗?Microsoft Update 上不再有视觉工作室更新/修复.

We're using VS-2008 and VSS 2005. Do you have any idea how I might fix this? There are no more visual-studio updates/fixes on Microsoft Update.

推荐答案

您需要确保文件是只读的,否则 VS 将无法判断它们是受版本控制的(或者,至少它是这样的)用来确定).您可以让 VSS 自行设置,以便获取最新版本将文件 RW 放在磁盘上.

You need to ensure the files are read-only, or VS won't be able to tell that they are version controlled (or, at least that's what it uses to determine it). You can tell VSS to set itself up so getting the latest version places the files RW on disk.

这里可能还有其他问题,但这是首先想到的.我的建议(我自己接受)是迁移到 SVN 或替代方案.失去工作是不可接受的.

There may be other problems here, but that's what comes to mind first. My advice (that I took myself) is to migrate to SVN or an alternative. Losing work is unacceptable.

这篇关于为什么在我编辑文件时不会自动从 VSS 检出文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆