Search code examples
c++mfcnewlinevisual-studio-6

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


When I try to "Open Workplace" of my project, visual studio does nothing, solution explorer is empty. Also when I try to open my project, I occasionally see this error:

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?


Solution

  • The problem was that my dsp/dsw file endings were LF. You can check your file endings in your code editor or using this git command:

    git ls-files --eol
    

    After converting ds/dsp files to CRLF, I was able to open the project. You can convert file endings in Unix using this command:

    unix2dos YouFileName.dsw