Build from engine source problem

I am trying to build from engine source 4.22 for use with dedicated server and I am using windows not mac. I download from github, extracted the package, ran the setup.bat file. after that completed I ran the generateprojectfiles.bat and I get a big red error. Any help would be greatly appreciated.

Seems like you don’t have the required .NET framework version to compile the engine. To download it go to your control panel and locate your VS installation. Then right click on it and choose repair. In the following menu make sure to check that you have selected the following options:

  1. Game Development with C++
  2. Nuget Package Manager
  3. Windows 10 SDK