I had this exact problem today on my Win7 machine. As Hans suggests: "Go to C: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 and type 'csc'. '
The file may still exist, but if you can open it with notepad, it will probably show just the text of some errors. This indicates that your compiler has been destroyed. In my office, we came up with the theory that updating Windows could be the reason for this, because only a few machines are affected, but I still haven't read a lot online about it.
We fixed this by copying someone else csc.exe to the C: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 directory and recompiling. Be sure to set the parameters in the read-only file so that this does not happen again. Good luck
Bildonia
source share