Results 1 to 8 of 8

Thread: Recovering Last Successful Build

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2018
    Posts
    34

    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!

  2. #2
    PowerPoster PlausiblyDamp's Avatar
    Join Date
    Dec 2016
    Location
    Pontypool, Wales
    Posts
    2,474

    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.

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,350

    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.

  4. #4

    Thread Starter
    Member
    Join Date
    Jun 2018
    Posts
    34

    Re: Recovering Last Successful Build

    I'd like to know how to decompile the output. Could you explain that to me?

  5. #5

    Thread Starter
    Member
    Join Date
    Jun 2018
    Posts
    34

    Re: Recovering Last Successful Build

    Actually, I fixed the issue by deleting a certain form.
    Thanks for the help everyone!

  6. #6
    PowerPoster PlausiblyDamp's Avatar
    Join Date
    Dec 2016
    Location
    Pontypool, Wales
    Posts
    2,474

    Re: Recovering Last Successful Build

    Quote Originally Posted by Gameoholic View Post
    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

  7. #7
    Frenzied Member
    Join Date
    Dec 2014
    Location
    VB6 dinosaur land
    Posts
    1,191

    Re: Recovering Last Successful Build

    Quote Originally Posted by Gameoholic View Post
    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.

  8. #8
    Karen Payne MVP kareninstructor's Avatar
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    6,686

    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
  •  



Click Here to Expand Forum to Full Width