Recover a project file

Home Forums Other Misc Recover a project file

This topic contains 4 replies, has 4 voices, and was last updated by  manojkmy 1 year, 4 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #167117

    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.


    Ossian
    Moderator
    #191750

    Can’t you just create a new project and use “add existing item” to add all the files to it?
    (Obviously I don’t know how many files make up the project)

    Alternatively restore (just the project file) from backup and add in anything new since the backup

    #391835

    ok. I’ll try to follow your instructions. thank you!)


    manojkmy
    Member
    #391837

    I had this situation. Try to do the following.
    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:

    Form

    Form1.cs

    4. Launch your project, it should starts with none of your forms, class…

    5. Add all your existing items in your project…
    In the extreme case, if this advice does not help, then try to use the online service for recover microsoft project file. Maybe it will help.
    Hope that helps!)

    #391836

    Thank you guys for your feedback and help. Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.