How to Repair/Rebuild .csproj File from Code files
I was working on a .Net 2.0 application. Late at night I upgraded it to .Net v.4. Then, as SVN was complaining I started to do manual conflict resolution. Even later than that I tried to check in my开发者_如何转开发 changes, then hit some conflicts so manually merged changes from the two different .csproj files.
I can't get back to where I was and rolling back to the previous version makes me lose all the code that has been written for it.
So I'm looking for a quick/dirty and reliable way of making sure my application code doesn't get lost?
If you want a quick and dirty solution, I would do the following:
- make a local (unversioned) copy of your working copy
- In visual studio, manually add each file to your project
- If you are absolutely sure you have not lost anything, and everything compiles, you can check-in your code
精彩评论