PDA

View Full Version : [SOLVED] Recover a project file



Neduchal
01-19-2016, 11:13 AM
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.

SamT
01-19-2016, 03:55 PM
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

Roberts71
01-28-2016, 09:19 AM
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/project-repair-online.html
Hope that helps!)

Roberts71
01-28-2016, 09:24 AM
Look at this reputable source also.
https://social.technet.microsoft.com/Forums/exchange/en-US/d267af68-d06a-4700-bc1e-63fd30b41758/are-there-any-tools-to-recover-a-corrupted-project-file?forum=projectserver2010general

Neduchal
01-31-2016, 09:56 AM
great! thanks!!!