gpt4 book ai didi

visual-studio-2008 - 源文件的 VSS 和 Visual Studio 2008 "Binary Files Differ"消息

转载 作者:行者123 更新时间:2023-12-04 16:38:00 24 4
gpt4 key购买 nike

我正在使用 VSS 2008 和 Visual Studio 2008。当我的源文件被检入时,VSS 属性对话框将它们显示为“Unicode (UTF-8)”类型。但是,如果我从 Visual Studio 中检查出一个,然后进行比较,它会显示“二进制文件不同”。还有人看到这个吗?我在某处有搞砸的设置吗?

谢谢,
安迪

更新:
感谢 VonC 的一些见解。在大多数情况下,关闭“自动检测本地文件的编码”复选框可以修复它,但至少对一个文件没有帮助。此外,我还没有找到一种方法来处理多个文件——它们必须一次一个地改变。
我仍在寻找更全面的解决方案。

最佳答案

从这里 old (2004) but may be still relevant article :

visual source safe doesn't always recognize text file types properly. when checking-in files using 'auto' type -- it treats them as binary.

So when you compare two .sql files you might see 'binary files differ' -- and nothing more. (that's how vss treats binary files).


The binary file differ

The solution is to change the file type using the properties context menu for the file in source safe. Change the type to text, you should be able to perform the visual comparison. You can also click on the 'advanced' option when checking-in the file, and manually change the selection to 'text' then.

To avoid in the future - you can add file type settings under the options menu in visual source safe, to set the default behavior for various file types there.

关于visual-studio-2008 - 源文件的 VSS 和 Visual Studio 2008 "Binary Files Differ"消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/407571/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com