Search code examples
c#asp.net-corerestorebin-folder

Restore .cs files from debug folder generated for a ASP.NET Core application


I have been programming an ASP.NET Core application for the last couples of weeks. Just a "small project" to put on my resume so I can get my first job. But today when I tried to upload it to Github I somehow deleted all the .cs files which really suck big time! However, I still have the files from the bin/debug folder in the original folder where all the .cs files was. Is there any way to restore the .cs files? I have been trying to use .NET Reflector but without any luck because I don't know how it works.

I don't know what information is relevant to know, so please feel free to ask for more details!

Best Regards Christian


Solution

  • ILSpy might be easier to use. Just load the binary and it will decompile each type. You can just copy-paste the code.