How may I resolve an error "Couldn't find target rules file for target 'ProjectName' when building a project?
Hello, I have just started a new project using Unreal Engine 4.18 with nearly nothing in the project and had added a few C++ files to the project. These C++ files worked well in the previous versions of Unreal Engine. Every time I try to compile them I get the following log message and have no idea how to solve this one. I have found a few other posts on the same subject, but nothing relating to the issue dealing with Unreal it self. Please, will some one help me out with this. Here is a copy of the full log I receive.
ERROR: Couldn't find target rules file for target 'AyselKeep' in rules assembly 'UE4Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
asked Dec 08 '17 at 03:35 AM in Using UE4
In your Source directory, there needs to be a "target" file for each build type you want (that means whether it's building the editor, game, or a server).
If you need an example, you can create a template project and look in that source. The files will be marked *.Target.cs.
If it worked before then those files must not have gotten copied over somehow. If they're gone for good you can recreate them by copying from a template project and renaming the files/classes so they match your project name.
answered Dec 08 '17 at 04:11 AM
I had this issue when creating projects on one of my computers. For some reason projects created on one of the computers create the following setting in the .uproject file (just open it with a text editor):
I removed the setting from the .uproject file and now it compiles.
answered Aug 19 '18 at 02:57 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here