Solved

Recover a project file

Posted on 2009-03-31
3
381 Views
Last Modified: 2013-11-26
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.
0
Comment
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 9

Expert Comment

by:VikramMullick
ID: 24031014
Are you using VSS, TFS etc...?
0
 

Author Comment

by:nicolas-cableorganizer
ID: 24031170
No I'm not.

It looks like the only way to recover it is to write this file manually... that's terrible. Even Word do allow to recover files.
0
 

Accepted Solution

by:
nicolas-cableorganizer earned 0 total points
ID: 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
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question