无法在 Visual Studio C++ 6.0 中打开 dsw 文件

Can't open dsw file in Visual Studio C++ 6.0

当我尝试“打开工作区”我的项目时,visual studio 没有任何反应,解决方案资源管理器是空的。 此外,当我尝试打开我的项目时,偶尔会看到此错误:

This makefile was not generated by Developer Studio.
Continuing will create a new Developer Studio project to wrap this makefile. You will be prompted to save after the new project has been created.
Do you want to continue?

问题是我的 dsp/dsw 文件结尾是 LF。您可以在代码编辑器中或使用此 git 命令检查文件结尾:

git ls-files --eol

将 ds/dsp 个文件转换为 CRLF 后,我能够打开该项目。 您可以使用此命令在 Unix 中转换文件结尾:

unix2dos YouFileName.dsw