C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\MSBuild.exe添加到环境变量就可以了 在下面的这个 Path 里添加,上面的不可以