CS 2005将一些.cs文件视为“二进制”文件。 [英] CS 2005 treating some .cs files as "binary"

查看:136
本文介绍了CS 2005将一些.cs文件视为“二进制”文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用VS 2005和SourceSafe版本6.0d build 31222

我已经开发了几个月的应用程序。

我现在至少有两个报告"二进制文件不同"的.cs文件。当我尝试在VSS中进行差异或在VS中进行比较时。

在SourceSafe中,我可以右键单击.cs文件名并转到属性。这显示了"类型"。作为二进制。对于这个文件,我做了一个Undo Checkout保留本地副本。然后,我在VSS中将文件类型更改为"文本"。在VSS中使用文件的属性对话框。

现在,当我查看差异时,我看到的是文件在每个合法字符之间都显示一个点(。)(如UniCode?)它标志着不同的是我所做的真正改变。我不敢在此时签入或签出任何文件。

发生了什么事?我的VSS数据库是否已损坏?关于如何解决此问题的任何建议?

提前感谢您的帮助。

Tim

I am using VS 2005 and SourceSafe Version 6.0d build 31222

 I have been developing an application for several months. 

I now have at least two .cs files that report "binary files differ" when I try to take a diff in VSS or Compare in VS.

In SourceSafe I can right click on the .cs file name and go to properties.  This shows the "Type" as binary.  For this file I did an Undo Checkout keeping the local copy.  I then, in VSS, changed the file type to "Text" using the properties dialog for the file in VSS.

Now, when I look at a diff, what I see is that the file is displayed with a dot (.) between every legitimate character (like UniCode?)  The ares that it flags as different are true changes I have made.  I am afraid to checkin or checkout any files at this point.

What is going on?  Is my VSS database corrupt?  Any suggestions on how to fix this?

Thanks in advance for your help.

Tim

推荐答案

不同的编码可能导致此类问题问题。请将.cs文件作为文本文件添加到VSS数据库,不应该出现问题。

谢谢。
Different encodings may cause such problem. Please add the .cs files to VSS Database as text files and the issue should not happen.

Thanks.


这篇关于CS 2005将一些.cs文件视为“二进制”文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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