Consulting

Results 1 to 5 of 5

Thread: Recover a project file

  1. #1

    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. #2
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    I haven't been able to figure out how to do it in Excel so now I added Before Save and Workbook Close subs in order to

    If not Saved Then
    SaveCopy As to another location
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  3. #3
    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 service of online repair Microsoft Project. Maybe it will help. https://onlinefilerepair.com/en/proj...ir-online.html
    Hope that helps!)

  4. #4
    Look at this reputable source also.
    https://social.technet.microsoft.com...ver2010general

  5. #5
    great! thanks!!!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •