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
This repro requires a Windows computer that only has VS2019 installed, and has never had any previous version of VS installed.
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.
There's no existing public thread on this issue, so head over toAnswerHub just mention UE-72173 in the post.