-
Jul 16th, 2018, 08:52 AM
#1
Thread Starter
Member
Recovering Last Successful Build
Hello,
I've run into some errors in my project, and I can't use it.
When I try to run it, it lets me use the last successful build (reminder), and it works perfectly.
Is there any way to restore that last build's code?
Thanks!
-
Jul 16th, 2018, 10:36 AM
#2
Re: Recovering Last Successful Build
Unless you are using some form of source code control or backup you are probably out of luck.
Might be a bit late to solve your immediate problem but to prevent similar problems in future you really should look at using some source code control. VS 2017 ships with git and I think it also still includes MS' own source code control.
-
Jul 16th, 2018, 10:44 AM
#3
Re: Recovering Last Successful Build
The only thing you could do without source control would be to use Ctrl+Z to undo changes in each file that has changed since then, assuming that you still have them open and you can remember where to stop undoing. There might also be the possibility of decompiling the output, but that won't give you the exact original source.
-
Jul 16th, 2018, 12:47 PM
#4
Thread Starter
Member
Re: Recovering Last Successful Build
I'd like to know how to decompile the output. Could you explain that to me?
-
Jul 16th, 2018, 12:48 PM
#5
Thread Starter
Member
Re: Recovering Last Successful Build
Actually, I fixed the issue by deleting a certain form.
Thanks for the help everyone!
-
Jul 16th, 2018, 05:05 PM
#6
Re: Recovering Last Successful Build
Originally Posted by Gameoholic
Actually, I fixed the issue by deleting a certain form.
Thanks for the help everyone!
Probably a good time to investigate using source control before it happens again
-
Jul 17th, 2018, 07:18 AM
#7
Re: Recovering Last Successful Build
Originally Posted by Gameoholic
I'd like to know how to decompile the output. Could you explain that to me?
Since you asked, this is the tool I've used before when I couldn't find the original source of an exe or dll (obviously only those compiled to .NET). It basically reverse engineers the IL code back into C# or VB syntax. It won't be the same syntax you originally used as jmc said, but is enough for you to figure it out though.
-
Jul 17th, 2018, 02:27 PM
#8
Re: Recovering Last Successful Build
You should consider using Visual Studio online and get familiar with Changesets and Shelvesets even if you solved the current issue.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|