Problem about the project sln

N

NEMA

Dear all,

i have a problem on the sln file.

After i have a error while coding, i close the VS studio and find the
sln file to open the project.

But i discover that the sln file become 0kb and i couldnt open it.
However, the .h and .cpp are still there.

could i recover it ?


thanks
 
B

Bruno van Dooren [MVP VC++]

i have a problem on the sln file.
After i have a error while coding, i close the VS studio and find the
sln file to open the project.

But i discover that the sln file become 0kb and i couldnt open it.
However, the .h and .cpp are still there.

could i recover it ?

A solution file is just an xml file.
you can open it with a text editor. if there is really no text in it
anymore, then the file got corrupted, and there is nothing you can do.

In that case you can create a new empty solution and add your projects to
it.
The solution file is the easiest to replace.

Btw, I hope that has taught you the value of using source code control or
taking back-ups
:)

--

Kind regards,
Bruno van Dooren
(e-mail address removed)
Remove only "_nos_pam"
 
B

Bruno van Dooren [MVP VC++]

A solution file is just an xml file.
Sadly, the .sln file isn't xml - but it is text.

You are right indeed.
The project files are XML, but the solution file is just plain text. Strange
design decision.

--

Kind regards,
Bruno van Dooren
(e-mail address removed)
Remove only "_nos_pam"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top