Announcement

Collapse
No announcement yet.

Recover a project file

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #2
    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
    Tom Jones
    MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
    PhD, MSc, FIAP, MIITT
    IT Trainer / Consultant
    Ossian Ltd
    Scotland

    ** Remember to give credit where credit is due and leave reputation points where appropriate **

    Comment


    • #3
      ok. I'll try to follow your instructions. thank you!)

      Comment


      • #4
        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:

        <Compile Include="Form1.cs">
        <SubType>Form</SubType>
        </Compile>
        <Compile Include="Form1.Designer.cs">
        <DependentUpon>Form1.cs</DependentUpon>
        </Compile>

        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!)
        Last edited by wullieb1; 27th July 2017, 05:33. Reason: Removed hyperlink

        Comment


        • #5
          Thank you guys for your feedback and help. Thank you!

          Comment

          Working...
          X