Attempting to run GenerateProjectFiles.bat on a computer that only has Visual Studio 2019 installed (no other versions of Visual Studio were ever installed previously) will fail to compile UnrealBuildTool. Numerous instances of several warnings and errors are shown.

warning CS1692: Invalid number
warning CS1591: Missing XML comment for publicly visible type or member
error CS0136: A local variable named 'RemoteMac' cannot be declared in this scope because it would give a different meaning to 'RemoteMac', which is already used in a 'parent or current' scope to denote something else
error CS0103: The name 'nameof' does not exist in the current context

Steps to Reproduce

This repro requires a Windows computer that only has VS2019 installed, and has never had any previous version of VS installed.


  1. Obtain a fresh clone of the 4.22 source code from GitHub.
  2. Run Setup.bat.
  3. Run GenerateProjectFiles.bat.

The GenerateProjectFiles process will fail to compile UnrealBuildTool. A large number of warnings and errors will be displayed, including multiple instances of the following (see attached text file): Warning CS1692, Warning CS1591, Error CS0136, Error CS0103

The GenerateProjectFiles process completes successfully.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-72173 in the post.

Login to Vote

ComponentUE - Foundation - Cpp Tools
Affects Versions4.22
Target Fix4.22
Fix Commit5673098
Main Commit5711343
Release Commit5673098
CreatedApr 1, 2019
ResolvedApr 1, 2019
UpdatedApr 5, 2019