# UE5.2.0 Always Missing Target File

**URL:** <https://forums.unrealengine.com/t/ue5-2-0-always-missing-target-file/1192867>\
**Category:** Getting Started & Setup\
**Tags:** unreal-engine, question\
**Created:** [June 8, 2023, 3:17pm UTC](https://forums.unrealengine.com/t/ue5-2-0-always-missing-target-file/1192867 "2023-06-08T15:17:33Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![RandomProduct](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RandomProduct](https://forums.unrealengine.com/u/RandomProduct)\
**Post date:** [June 8, 2023, 3:17pm UTC](https://forums.unrealengine.com/t/ue5-2-0-always-missing-target-file/1192867/1 "2023-06-08T15:17:33Z")

</div>

Every time I launch UE5, I get this popup message:  
`The MyProjectEditor.target file does not exist. Would you like to build the editor?`  
I hit yes, and move on. I’m guessing this is related to my other issue, where hitting Compile in UE5 results in this error:

`Using bundled DotNet SDK version: 6.0.302 Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" -Target="MyProjectEditorNonUnity Win64 Development -Project=""C:/Users/nope/Documents/UnrealProjects/MyProject/MyProject.uproject""" -LiveCoding -LiveCodingModules="C:/Program Files/Epic Games/UE_5.2/Engine/Intermediate/LiveCodingModules.txt" -LiveCodingManifest="C:/Program Files/Epic Games/UE_5.2/Engine/Intermediate/LiveCoding.json" -WaitMutex -LiveCodingLimit=100 Log file: C:\Users\nope\AppData\Local\UnrealBuildTool\Log.txt Creating makefile for MyProjectEditorNonUnity (no existing makefile) Couldn't find target rules file for target 'MyProjectEditorNonUnity' in rules assembly 'UE5Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. Location: C:\Program Files\Epic Games\UE_5.2\Engine\Intermediate\Build\BuildRules\UE5Rules.dll Target rules found:`

This is happening in a completely empty C++ project. My new project has both a \*.Target.cs and an \*Editor.Target.cs file in its Source folder.

Any ideas on how to fix this?

---

<div class="post-metadata">

**Author:** ![1011theoryfred](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@1011theoryfred](https://forums.unrealengine.com/u/1011theoryfred)\
**Post date:** [June 9, 2023, 2:23am UTC](https://forums.unrealengine.com/t/ue5-2-0-always-missing-target-file/1192867/2 "2023-06-09T02:23:31Z")

</div>

I’m getting the same error, just updated my project from 5.0.3 to 5.2

---

<div class="post-metadata">

**Author:** ![Aethir7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aethir7](https://forums.unrealengine.com/u/Aethir7)\
**Post date:** [June 9, 2023, 10:14am UTC](https://forums.unrealengine.com/t/ue5-2-0-always-missing-target-file/1192867/3 "2023-06-09T10:14:22Z")

</div>

Hello,

I’m having the same issue on new 5.2 c++ projects.

New 5.1 c++ projects work fine though.

I think the .target file it’s looking for is not the ones in “Source”, but the one in : “MyProject”\Binaries\Win64

There is one called “MyProjectEditorNonUnity.target” there. And if I delete it and press “Yes” when I launch the project and Unreal tells me it’s missing, it will be created.

If I close the project and relaunch it, it will tell me it’s missing, even though it literally just created it.

Now, I noticed that in my 5.1 project the file does not have “NonUnity” in it and the “Missing target file” window that pops up (in 5.2) is asking for “MyProjectEditor.target” and not “MyProjectEditorNonUnity.target” so I removed “NonUnity” from the file name.

After doing that the project will launch without the “Missing target file” window/warning, but live compiling still doesn’t work and does the same error message.(same thing if I have both a “MyProjectEditorNonUnity.target” file and a “MyProjectEditor.target” file.)

"Couldn’t find target rules file for target ‘MyProjectEditorNonUnity’ in rules assembly ‘UE5Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’.  
Location: C:\Program Files\Epic Games\UE\_5.2\Engine\Intermediate\Build\BuildRules\UE5Rules.dll  
Target rules found:

Build failed."

I don’t know how to fix this but I think there is a clue in there ? Hope someone can figure it out, or it gets fixed in 5.2.1.

---

<div class="post-metadata">

**Author:** ![duchamp](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/duchamp/32/630690_2.png) [@duchamp](https://forums.unrealengine.com/u/duchamp)\
**Post date:** [June 14, 2023, 6:25am UTC](https://forums.unrealengine.com/t/ue5-2-0-always-missing-target-file/1192867/4 "2023-06-14T06:25:12Z")

</div>

Any update on this?

---

<div class="post-metadata">

**Author:** ![Aethir7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aethir7](https://forums.unrealengine.com/u/Aethir7)\
**Post date:** [June 24, 2023, 7:26pm UTC](https://forums.unrealengine.com/t/ue5-2-0-always-missing-target-file/1192867/5 "2023-06-24T19:26:47Z")

</div>

Seems like it works now on 5.2.1 for me. Both livecoding and the target file generation/detection.

---

<div class="post-metadata">

**Author:** ![FlashTrance](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/flashtrance/32/730424_2.png) [@FlashTrance](https://forums.unrealengine.com/u/FlashTrance)\
**Post date:** [July 19, 2023, 2:33am UTC](https://forums.unrealengine.com/t/ue5-2-0-always-missing-target-file/1192867/6 "2023-07-19T02:33:53Z")

</div>

Adding to this in case it helps someone else out… while the detection of the file is working now in 5.2.1, I still have an issue where if I rebuild, the Engine by default creates a “NonUnity.target” file and then subsequently complains that it can’t find the Unity version (which doesn’t have that “NonUnity” at the end of the file name).

To solve this, I had to explicitly put “bUseUnityBuild = true” in my Target.cs. Now it generates the expected file.

---

<div class="post-metadata">

**Author:** ![brrmod](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@brrmod](https://forums.unrealengine.com/u/brrmod)\
**Post date:** [July 19, 2023, 4:03am UTC](https://forums.unrealengine.com/t/ue5-2-0-always-missing-target-file/1192867/7 "2023-07-19T04:03:50Z")

</div>

Hey guys, the problem is this commit:  
https://github.com/EpicGames/UnrealEngine/commit/b3b649da38fa1ced42f6d11006e061e03179e4df

I will copy the workaround here:  
Just add this to your target.cs  
`Name = "ProjectNameEditor";`

---

<div class="post-metadata">

**Author:** ![Iridescent](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/iridescent/32/950301_2.png) [@Iridescent](https://forums.unrealengine.com/u/Iridescent)\
**Post date:** [August 1, 2023, 7:59am UTC](https://forums.unrealengine.com/t/ue5-2-0-always-missing-target-file/1192867/8 "2023-08-01T07:59:43Z")

</div>

Do you mean like this?  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/8/0/b80c8744c595f3d1de32b5c4340fe1ab085ed221.png)

it doesnt work for me… im on 5.2.1

---

<div class="post-metadata">

**Author:** ![brrmod](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@brrmod](https://forums.unrealengine.com/u/brrmod)\
**Post date:** [August 3, 2023, 4:24pm UTC](https://forums.unrealengine.com/t/ue5-2-0-always-missing-target-file/1192867/9 "2023-08-03T16:24:54Z")

</div>

In your case it seems like

```auto
Name = "MyProjectEditor";

```

should work

---

<div class="post-metadata">

**Author:** ![Iridescent](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/iridescent/32/950301_2.png) [@Iridescent](https://forums.unrealengine.com/u/Iridescent)\
**Post date:** [August 5, 2023, 5:12am UTC](https://forums.unrealengine.com/t/ue5-2-0-always-missing-target-file/1192867/10 "2023-08-05T05:12:01Z")

</div>

Ye tried that as well and it didnt work. Also tried “bUseUnityBuild = true”. that didnt work either…

---

<div class="post-metadata">

**Author:** ![Iridescent](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/iridescent/32/950301_2.png) [@Iridescent](https://forums.unrealengine.com/u/Iridescent)\
**Post date:** [August 5, 2023, 7:01am UTC](https://forums.unrealengine.com/t/ue5-2-0-always-missing-target-file/1192867/11 "2023-08-05T07:01:37Z")

</div>

Ok so this worked for me. You need to go to your BuildConfiguration.xml file and change bUseUnityBuild to true like this:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/7/4/274655a7d354a9ebeb91ec37233618e9bd2be543.png)

---

<div class="post-metadata">

**Author:** ![brrmod](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@brrmod](https://forums.unrealengine.com/u/brrmod)\
**Post date:** [August 9, 2023, 6:20am UTC](https://forums.unrealengine.com/t/ue5-2-0-always-missing-target-file/1192867/12 "2023-08-09T06:20:13Z")

</div>

Using unity build has its own drawbacks, if you don’t want to and it’s consciously - setting Name explicitly should work.
