Sign in to follow this  
danromeo

Reconstruct lost .cs file in Visual Studio 2010?

Recommended Posts

danromeo    238
I lost an important .cs file (don't ask). Is there any way to reconstruct it from a compiled project in Visual Studio 2010? As a last resort the dead hard drive is in the deep freeze....Ancient Chinese Secret. I know this is off topic but this is a tried and true forum so if anybody can point me in the right direction.....

Share this post


Link to post
Share on other sites
While I can't assist with the lost .cs file, have you considered looking into a revision-control source repository? A little self-discipline goes a long way, and it beats the pants off standard backups.

Share this post


Link to post
Share on other sites
Starnick    1892
You can use tools such as [url="http://www.reflector.net/"]Reflector[/url] or [url="http://wiki.sharpdevelop.net/ILSpy.ashx"]ILSpy[/url] to decompile the assembly your lost code lives in. And yeah, version control can be a valuable investment for any project, I've been there recently with a dead hard drive and losing code is not fun.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this