Getting error C2001: new line in constant

My project packaged fine in 4.13 but in 4.15 I am getting this C2001 error when trying to build. Have no idea how to fix. I deleted intermediate, binary, and saved folders and rebuilt vs code. Its a BP project with just a blank c++ actor to generate binary for Viveport. Output log below. Please help, supposed to release on Steam 5/25

UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Running UnrealHeaderTool “D:\Users\ryans\OneDrive\Documents\Unreal Projects\Trance_VR\Trance_VR.uproject” “D:\Users\ryans\OneDrive\Documents\Unreal Projects\Trance_VR\Intermediate\Build\Win64\Trance_VR\Development\Trance_VR.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error”
-Unattended -WarningsAsErrors -installed
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Reflection code generated for Trance_VR in 7.7895253 seconds
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Performing 7 actions (4 in parallel)
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: PCH.UELinkerFixups.cpp
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: PCH.Trance_VR.cpp
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: D:/Users/ryans/OneDrive/Documents/Unreal Projects/Trance_VR/Intermediate/Build/Win64/Trance_VR/Development/Trance_VR/PCH.Trance_VR.h(32): error C2001: newline in constant
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: UELinkerFixups.cpp
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: D:\Users\ryans\OneDrive\Documents\Unreal Projects\Trance_VR\Intermediate\Build\Win64\UE4\Development\UELinkerFixups.cpp(93): error C2001: newline in constant
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: ERROR: UBT ERROR: Failed to produce item: D:\Users\ryans\OneDrive\Documents\Unreal Projects\Trance_VR\Binaries\Win64\Trance_VR.exe
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Total build time: 43.97 seconds (Local executor: 0.00 seconds)
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 44.2762462s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: Packaging (Windows (64-bit)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): D:\Program Files\Epic Games\UE_4.15\Engine\Binaries\DotNET\UnrealBuildTool.exe Trance_VR Win64 Development -Project=“D:\Users\ryans\OneDrive\Documents\Unreal Projects\Trance_VR
Trance_VR.uproject” “D:\Users\ryans\OneDrive\Documents\Unreal Projects\Trance_VR\Trance_VR.uproject” -remoteini=“D:\Users\ryans\OneDrive\Documents\Unreal Projects\Trance_VR” -noxge -NoHotReload -ignorejunk. See logfile for details: ‘UnrealBuildTool-2017.05.23-22.45.42.txt’
UATHelper: Packaging (Windows (64-bit)): at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary2 EnvVars, SpewFilterCallbackType SpewFilterCallback) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
UATHelper: Packaging (Windows (64-bit)): at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary2 EnvVars) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, FileReference Project, String Target, String Platform, String Config, String AdditionalArgs, String LogName, Dictionary2 EnvVars)
UATHelper: Packaging (Windows (64-bit)): at AutomationTool.UE4Build.BuildWithUBT(String TargetName, UnrealTargetPlatform TargetPlatform, String Config, FileReference UprojectPath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean ForceFlushMac, Boolean DisableXGE, String InAddArgs, Boolean ForceUnity, Dictionary2 EnvVars) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, Dictionary2 PlatformEnvVars, Nullable1 InChangelistNumberOverride, Dictio
nary2 InTargetToManifest) UATHelper: Packaging (Windows (64-bit)): at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask) UATHelper: Packaging (Windows (64-bit)): at BuildCookRun.DoBuildCookRun(ProjectParams Params) UATHelper: Packaging (Windows (64-bit)): at BuildCookRun.ExecuteBuild() UATHelper: Packaging (Windows (64-bit)): at AutomationTool.BuildCommand.Execute() UATHelper: Packaging (Windows (64-bit)): at AutomationTool.Automation.Execute(List1 CommandsToExecute, CaselessDictionary1 Commands) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.Automation.Process(String[] Arguments) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.Program.MainProc(Object Param) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.InternalUtils.RunSingleInstance(Func2 Main, Object Param)
UATHelper: Packaging (Windows (64-bit)): at AutomationTool.Program.Main()
UATHelper: Packaging (Windows (64-bit)): Program.Main: AutomationTool exiting with ExitCode=5 (5)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults:Error: Error Unknown Error

My fix was right clicking uproject for notepad and completely removing all C++, and the intermediaries ect. Then just added the c++ class in and it worked. I think updating to a new version caused a corruption in the header or something.

I ran into the same problem and found that it was caused by my package’s name having an apostrophe in it. Removing it fixed the error, although it’s not an ideal fix.