How can I easyly decompile EXE to C-Sharp (or other langage) and then compile it without errors ?

I tried using some free tools to decompile EXE (or DLL) and indeed get the source codes, however, many variables were anonymous and compiling gave lots of errors I cant fix. Is there a way to decompile EXE and something that fix the source code automatically and allow me to compile it straight a way without a hassel ?