Just to make the answer a little more official, writing it up here.
Regarding the first question, it would seem the problem was during visual studio install not all required C# tools were installed.
Regarding build commands, I would recommend using Visual Studio as described here, at least as a start:
You should have everything you need from Visual Studio.
If you need to be doing something special:
Build.bat works this way:
\Path\To\BatchFiles\Build.bat “Target” Win64 Development -WaitMutex -FromMsBuild
where “Target” = UE4Editor when you want to build the engine.
Example:
\Path\To\BatchFiles\Build.bat UE4Editor Win64 Development -WaitMutex -FromMsBuild
You can also use it to build you’re game editor:
\Path\To\BatchFiles\Build.bat "gamename"Editor Win64 Development “projectpath” -WaitMutex -FromMsBuild
where “gamename” is the name of you’re project, ad project path, a path to you’re uproject file.
example:
\Path\To\BatchFiles\Build.bat MyGameEditor Win64 Development \Path\To\My\Project\MyGame.uproject -WaitMutex -FromMsBuild
(regarding -2017 pretty sure you don’t need this one, this would be used in the case where you want to use a different version of vs then recommended for ue version)
Hope this helps.