Oh man, it sucks you lost the project file because of it. So it's important to have multiple versions saved to avoid that, and fallback to a slightly earler build just in case. Applying Version Control for development is your friend.