Getting Errors in UBT cs files

When generating project files I get this

./GenerateProjectFiles.sh

Setting up Unreal Engine 4 project files...

Configuration/UEBuildBinary.cs(11,7): error CS0246: The type or namespace name `Tools' could not be found. Are you missing an assembly reference?
Configuration/UEBuildModule.cs(11,7): error CS0246: The type or namespace name `Tools' could not be found. Are you missing an assembly reference?
Configuration/UEBuildTarget.cs(11,7): error CS0246: The type or namespace name `Tools' could not be found. Are you missing an assembly reference?
System/CPPHeaders.cs(11,7): error CS0246: The type or namespace name `Tools' could not be found. Are you missing an assembly reference?
System/DynamicCompilation.cs(11,7): error CS0246: The type or namespace name `Tools' could not be found. Are you missing an assembly reference?
System/ProjectFileGenerator.cs(11,7): error CS0246: The type or namespace name `Tools' could not be found. Are you missing an assembly reference?
System/UnrealBuildTool.cs(13,7): error CS0246: The type or namespace name `Tools' could not be found. Are you missing an assembly reference?
System/UProjectInfo.cs(11,7): error CS0246: The type or namespace name `Tools' could not be found. Are you missing an assembly reference?
System/Utils.cs(14,7): error CS0246: The type or namespace name `Tools' could not be found. Are you missing an assembly reference?
System/Utils.cs(15,7): error CS0246: The type or namespace name `Tools' could not be found. Are you missing an assembly reference?
Utilities/XmlConfigLoader.cs(16,7): error CS0246: The type or namespace name `Tools' could not be found. Are you missing an assembly reference?
Configuration/UEBuildTarget.cs(969,10): error CS0246: The type or namespace name `CaselessDictionary' could not be found. Are you missing an assembly reference?
Configuration/UEBuildModule.cs(676,47): error CS0246: The type or namespace name `CaselessDictionary' could not be found. Are you missing an assembly reference?
Configuration/UEBuildModule.cs(1746,48): error CS0246: The type or namespace name `CaselessDictionary' could not be found. Are you missing an assembly reference?
System/CPPHeaders.cs(417,18): error CS0246: The type or namespace name `FileContentsCacheType' could not be found. Are you missing an assembly reference?
Generating data for project indexing... 100%
Writing project files... 100%

It still writes the project files though.
I also noticed the same messages showing up in xcode as well when building the editor or project

I’m currently up to date on the 4.11 branch and have tried rerunning setup to possibly load any new files from there but it hasn’t helped.

Hey dormlock-

Which platform are you trying to build the engine for? I noticed the “.sh” which is used on Linux but you also mention XCode. Are you working on Windows, Linux, or Mac? Also, which build of the engine are you getting these errors with?

Hi - I noticed this yesterday for the first time as well but I am running on 4.10. I had just installed the latest mono develop app and framework… Could that be related?

Oh - I am seeing this on a mac in Xcode building the Development target for device

This may be related: UBT build errors on Mac (and odd linker error) - Programming & Scripting - Epic Developer Community Forums

Following the steps in the link above solved the problem for me.

Yeah I had updated my xamarain install in the last couple of days as well.

I’m using Mac Os x 10.10.5. I thought the .sh doesn’t matter for the mac os x since it runs the command as well.

Rather than running GenerateProjectFiles.sh from the terminal you should be able to double click on the .command file and run it directly. Also, if you are having the same problem iambrentiam mentioned, can you try using the setps in the link they posted? Let me know if you run into any errors using either method.

Cheers

So I went in and added the DotNetUtilities.dll to the references and that solved my problem. Looking at the changes in my local copy it seems the reference to the DotNetUtilites was missing as it shows as being added to the csproj file.

reverting the csproj file and then redoing the setup and generation using the command versions worked as well.

Is there a reason for the difference between .sh on the mac and .command?
Maybe the .sh should quietly call the command variants if run on a mac.
I tend to be a t a command line a lot for my day job and run .sh on the mac a lot times as well.

I just happened to look at the setup command and genreateprojectfiles command and they actually call the .sh versions. So not sure why just using the .sh version didn’t work vs the command.
Might have not mattered after adding that assembly reference that was missing it might have gotten cached in the mono system somewhere.