First make sure that you are already download dotNetFx40_Full_x86_x64.exe and installed(It's commonly bind with Visual Stdio).
Then quickly set a new Environment Variables at System variables. like below:
"TargetFrameworkSDKToolsDirectory":"C:\Program Files (x86)\Microsoft SDKs\Windows\vxx.0A\bin\NETFX 4.6.1 Tools"
//note:the path:'\vxx.0A\' is a variable indicating your version. it's '\v10.0A\' for me.