Recover a project file

I was saving a project on Visual Studio 2008 Pro when my computer rebooted.
Now when I open a solution, I get the message "Unable to read the project file 'XXXXX.csproj'.".
I checked this file, it contains only nulled chars (instead of all the config of the project).

Is there a way to recover or regenerate this file?

Thanks for your help.
Who is Participating?
nicolas-cableorganizerConnect With a Mentor Author Commented:
For those who would encounter the same problem, here is what I did.

1. Create a new similar project
2. Copy the content of the *.csproj (or vbproj, etc.)
3. Remove all the "Compile Include" references.
Basically this:
    <Compile Include="Form1.cs">
    <Compile Include="Form1.Designer.cs">
4. Launch your project, it should starts with none of your forms, class...
5. Add all your existing items in your project...

Hope that helps
Are you using VSS, TFS etc...?
nicolas-cableorganizerAuthor Commented:
No I'm not.

It looks like the only way to recover it is to write this file manually... that's terrible. Even Word do allow to recover files.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.