‘’’
Registered restarted process N:_EPIC_Installs\UE_5.1\Engine\Binaries\Win64\UnrealEditor.exe (PID: 2184, previous PID: 12124)
Loading module N:_Unreal_Projects\SportsGame\Binaries\Win64\UnrealEditor-SportsGame.dll (0.085 MB)
Loaded 1 module(s) (0.000s, 5 translation units)
Live coding ready - Save changes and press CTRL+ALT+F11 to re-compile code
Manual recompile triggered
---------- Creating patch ----------
Running N:_EPIC_Installs\UE_5.1\Engine\Build\BatchFiles\Build.bat -Target=“SportsGameEditor Win64 Development -Project=”“N:/_Unreal_Projects/SportsGame/SportsGame.uproject”“” -LiveCoding -LiveCodingModules=“N:/_EPIC_Installs/UE_5.1/Engine/Intermediate/LiveCodingModules.txt” -LiveCodingManifest=“N:/_EPIC_Installs/UE_5.1/Engine/Intermediate/LiveCoding.json” -WaitMutex -LiveCodingLimit=100
Quick restart disabled when re-instancing is enabled.
Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” -Target=“SportsGameEditor Win64 Development -Project=”“N:/_Unreal_Projects/SportsGame/SportsGame.uproject”“” -LiveCoding -LiveCodingModules=“N:/_EPIC_Installs/UE_5.1/Engine/Intermediate/LiveCodingModules.txt” -LiveCodingManifest=“N:/_EPIC_Installs/UE_5.1/Engine/Intermediate/LiveCoding.json” -WaitMutex -LiveCodingLimit=100
Log file: C:\Users\MegaCorp\AppData\Local\UnrealBuildTool\Log.txt
Building SportsGameEditor…
Using Visual Studio 2022 14.33.31631 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629) and Windows 10.0.22621.0 SDK (C:\Program Files (x86)\Windows Kits\10).
Determining max actions to execute in parallel (4 physical cores, 8 logical cores)
Executing up to 4 processes, one per physical core
Building 5 actions with 4 processes…
[1/5] Compile SharedPCH.Engine.ShadowErrors.cpp
[2/5] Compile SportsGame.init.gen.cpp
[3/5] Compile SportsGame.cpp
[4/5] Compile SportsGameGameModeBase.gen.cpp
[5/5] Compile SportsGameGameModeBase.cpp
Total time in Parallel executor: 61.72 seconds
Total execution time: 63.27 seconds
File N:_Unreal_Projects\SportsGame\Intermediate\Build\Win64\SportsGameEditor\Development\Engine\SharedPCH.Engine.ShadowErrors.h.obj was modified or is new
File N:_Unreal_Projects\SportsGame\Intermediate\Build\Win64\UnrealEditor\Development\SportsGame\SportsGame.init.gen.cpp.obj was modified or is new
File N:_Unreal_Projects\SportsGame\Intermediate\Build\Win64\UnrealEditor\Development\SportsGame\SportsGameGameModeBase.gen.cpp.obj was modified or is new
File N:_Unreal_Projects\SportsGame\Intermediate\Build\Win64\UnrealEditor\Development\SportsGame\SportsGame.cpp.obj was modified or is new
File N:_Unreal_Projects\SportsGame\Intermediate\Build\Win64\UnrealEditor\Development\SportsGame\SportsGameGameModeBase.cpp.obj was modified or is new
Building patch from 5 file(s) for Live coding module N:_Unreal_Projects\SportsGame\Binaries\Win64\UnrealEditor-SportsGame.dll
Creating library N:_Unreal_Projects\SportsGame\Binaries\Win64\UnrealEditor-SportsGame.patch_0.lib and object N:_Unreal_Projects\SportsGame\Binaries\Win64\UnrealEditor-SportsGame.patch_0.exp
Successfully linked patch (0.000s)
Patch creation for module N:_Unreal_Projects\SportsGame\Binaries\Win64\UnrealEditor-SportsGame.dll successful (0.000s)
---------- Finished (0.000s) ----------
Manual recompile triggered
---------- Creating patch ----------
Running N:_EPIC_Installs\UE_5.1\Engine\Build\BatchFiles\Build.bat -Target=“SportsGameEditor Win64 Development -Project=”“N:/_Unreal_Projects/SportsGame/SportsGame.uproject”“” -LiveCoding -LiveCodingModules=“N:/_EPIC_Installs/UE_5.1/Engine/Intermediate/LiveCodingModules.txt” -LiveCodingManifest=“N:/_EPIC_Installs/UE_5.1/Engine/Intermediate/LiveCoding.json” -WaitMutex -LiveCodingLimit=100
Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” -Target=“SportsGameEditor Win64 Development -Project=”“N:/_Unreal_Projects/SportsGame/SportsGame.uproject”“” -LiveCoding -LiveCodingModules=“N:/_EPIC_Installs/UE_5.1/Engine/Intermediate/LiveCodingModules.txt” -LiveCodingManifest=“N:/_EPIC_Installs/UE_5.1/Engine/Intermediate/LiveCoding.json” -WaitMutex -LiveCodingLimit=100
Log file: C:\Users\MegaCorp\AppData\Local\UnrealBuildTool\Log.txt
Invalidating makefile for SportsGameEditor (SportsGame.Build.cs modified)
N:_Unreal_Projects\SportsGame\Source\SportsGame\SportsGame.Build.cs(3,27): error CS0246: The type or namespace name ‘ModuleRules’ could not be found (are you missing a using directive or an assembly reference?)
N:_Unreal_Projects\SportsGame\Source\SportsGame\SportsGame.Build.cs(5,23): error CS0246: The type or namespace name ‘ReadOnlyTargetRules’ could not be found (are you missing a using directive or an assembly reference?)
N:_Unreal_Projects\SportsGame\Source\SportsGame\SportsGame.Build.cs(5,53): error CS1729: ‘ModuleRules’ does not contain a constructor that takes 1 arguments
N:_Unreal_Projects\SportsGame\Source\SportsGame\SportsGame.Build.cs(7,9): error CS0103: The name ‘PCHUsage’ does not exist in the current context
N:_Unreal_Projects\SportsGame\Source\SportsGame\SportsGame.Build.cs(7,20): error CS0103: The name ‘PCHUsageMode’ does not exist in the current context
N:_Unreal_Projects\SportsGame\Source\SportsGame\SportsGame.Build.cs(9,9): error CS0103: The name ‘PublicDependencyModuleNames’ does not exist in the current context
N:_Unreal_Projects\SportsGame\Source\SportsGame\SportsGame.Build.cs(11,9): error CS0103: The name ‘PrivateDependencyModuleNames’ does not exist in the current context
Expecting to find a type to be declared in a target rules named ‘SportsGameEditorTarget’. This type must derive from the ‘TargetRules’ type defined by Unreal Build Tool.
Build failed.
‘’’
This is the entire output log on my new project. I installed all the relevant addons etc. I am using VS2022 and I have set this to be the code editor inside UE5.
The error is created by saving the build.cs, even if I make no changes to it. On this occasion, all I added was a line with a comment “//” and saved it.
I have no idea how I can fix this error. But I need to alter the Build.cs so that I can learn the new “EnhancedInput” module.
For reference here is the actual build.cs file:
// Copyright Epic Games, Inc. All Rights Reserved.
public class SportsGame : ModuleRules
{
public SportsGame(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore" });
PrivateDependencyModuleNames.AddRange(new string[] { });
//
// Uncomment if you are using Slate UI
// PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" });
// Uncomment if you are using online features
// PrivateDependencyModuleNames.Add("OnlineSubsystem");
// To include OnlineSubsystemSteam, add it to the plugins section in your uproject file with the Enabled attribute set to true
}
}