How to setup UE4 without vs-studio2017 and only with the MSBuild tools

I finally got it working after so much unnecessary effort…

What FredTuna mentioned above is the first step. But you have to make sure you include a few things in the “components” section when you install vs tools from the vs 2017 installer. Also you can follow this as I later found this page hidden away…

So the way I went was to install all the tools without having to install the VS Studio IDE. Using only VS Cpp Compiler tools and VS Code.

When you install the tools make sure you have the following things selected. Most of these are selected by default.

  • Obviously the basic core features.
  • VC++ 2017 toolset(x86, x64)
  • Windows Universal C Runtime
  • Windows 10 SDK
  • Windows 8.1 SDK and UCRT SDK
  • And most importantly you have to select the 2015 Toolset (Compiler, Headers and things for 32/64 bit) The engine will complain when you don’t have that it needs that.

After that you have to go into the editor via making a blueprint empty project. Then go to Editor Settings and search for “Code” then select VS Code as the pref editor. Only then when you try and make a c++ project it would work.

Also once you have VS Code installed make sure you install the c++ extension the top one with the most downloads. Once you made a project in the editor for c++ it should automatically load up the project folder inside VS Code. I noticed that VS code complained about a few things in the source all I did to fix that was to add at the top of your .h file

#include "Engine.h"

From here everything should work, you can compile the project from within the editor.