Description

When a C++ project is named Test on a Binary version of the editor, the project will fail to compile. I'm assuming this is from the editor seeing a precompiled header from another file in the engine called Test.h.

This also occurs with projects named "Core"

Update
======
Performing a non-hot reload build in Visual Studio will complete successfully.

Steps to Reproduce
  1. Open a Binary version of the engine
  2. Create a new C++ project named "Test" (without the quotes)

Result: The initial compilation fails and shows the following message:

The project could not be compiled. Would you like to open it in Visual Studio?

Running D:/Epic Games/4.15/Engine/Binaries/DotNET/UnrealBuildTool.exe Test Development Win64 -project="D:/Unreal Projects/Current Issues/Test/Test.uproject" -editorrecompile -progress -NoHotReloadFromIDE
Performing full C++ include scan (building a new target)
ERROR: System.NotSupportedException: The given path's format is not supported.
   at System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String fullPath, Boolean checkForDuplicates, Boolean needFullPath)
   at System.IO.FileInfo.Init(String fileName, Boolean checkHost)
   at UnrealBuildTool.UnrealBuildTool.LoadUBTMakefile(FileReference MakefilePath, FileReference ProjectFile, String& ReasonNotLoaded)
   at UnrealBuildTool.UnrealBuildTool.RunUBT(String[] Arguments, FileReference ProjectFile)

Expected: Either this should be possible or the Unreal Project Launcher should prevent the project from being named Test

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

1
Login to Vote

Won't Do
ComponentUE - Foundation - Build - Farm
Affects Versions4.114.124.134.14.34.15
CreatedJul 21, 2016
ResolvedApr 19, 2019
UpdatedJun 27, 2019