Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Configuring the system environment variables
System Properties -> Advanced System Settings -> Environment Variables. Found in the system environment variable Path, add the directory C:\Windows\Microsoft.NET\Framework\v4.0.30319
where Framework
the operating system, there may be Framework64
; v4.0.30319
can select the version needed, but the default installation of the system relatively old version, v4.0.30319
only applies to C # 5 or less.