Use where msbuild to locate whether it is in PATH. If it is not, then please add C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin into PATH. (P.S. Enterprise here can be replaced by Community or Professional)