Hey all,
After making some changings to my source code, UE was failing to build my project and threw an error suggesting I recompile from source manually.
Attempting to do this hasn’t worked. In fact, I can’t even regenerate the project files. I receive a crash log detailing errors in files that, when compared to files on other branches of the project, prove to be exactly the same.
Here, the relevant bits of the crash log:
Discovering modules, targets and source code for project...
Compiled assembly file 'C:\Users\Schindler\dev\601204_syntra\RandomEnvGen\Intermediate\Build\BuildRules\RandomEnvGenModuleRules.dll' appears to be for a newer CLR version or is otherwise invalid. Unreal Build Tool will try to recompile this assembly now. (Exception: Could not load file or assembly 'C:\Users\Schindler\dev\601204_syntra\RandomEnvGen\Intermediate\Build\BuildRules\RandomEnvGenModuleRules.dll'. Format of the executable (.exe) or library (.dll) is invalid.)
C:\Users\Schindler\dev\601204_syntra\RandomEnvGen\Source\RandomEnvGenEditor.Target.cs(14,3): error CS0103: The name 'IncludeOrderVersion' does not exist in the current context
C:\Users\Schindler\dev\601204_syntra\RandomEnvGen\Source\RandomEnvGenEditor.Target.cs(14,25): error CS0103: The name 'EngineIncludeOrderVersion' does not exist in the current context
ERROR: Expecting to find a type to be declared in a target rules named 'RandomEnvGenTarget'. This type must derive from the 'TargetRules' type defined by Unreal Build Tool.
particularly the errors regarging variables not exisiting in their context and the missing target rules confuse me. As far as I can tell, all other currently functioning versions of the project do not have this issue, and the code in the Target.cs files is the same.
Any help would be appreciated!