Recover a project file

nietoramos

New member
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.
 
http://www.experts-exchange.com/questions/24281219/Recover-a-project-file.html


also bot!

Recover a project file
Question by: nicolas-cableorganizer On 2009-03-31 07:39 AM
.NET Programming
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.

Good Question?
Show full question

nicolas-cableorganizer
Accepted Solution on 2009-03-31 at 14:02:29ID: 24033629
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">
<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...

Hope that helps
 
Back
Top