Is there any software to do this? I didn\'t find any useful information on the internet so I am asking here.
Use Refractor. Download from here.
I used Refractor to recover my script/code from dll file.
You cannot get the exact code, but you can get a decompiled version of it.
The most popular (and best) tool is Reflector, but there are also other .Net decompilers (such as Dis#). You can also decompile the IL using ILDASM, which comes bundled with the .Net Framework SDK Tools.
Use dotPeek
Select the .dll
to decompile
That's it
Use .NET reflector.
You can use Reflector and also use Add-In FileGenerator to extract source code into a project.