# BuildEnvironment = TargetBuildEnvironment.Unique

**URL:** <https://forums.unrealengine.com/t/buildenvironment-targetbuildenvironment-unique/1764271>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [March 21, 2024, 12:53am UTC](https://forums.unrealengine.com/t/buildenvironment-targetbuildenvironment-unique/1764271 "2024-03-21T00:53:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sarlack](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sarlack/32/1194542_2.png) [@Sarlack](https://forums.unrealengine.com/u/Sarlack)\
**Post date:** [March 21, 2024, 12:53am UTC](https://forums.unrealengine.com/t/buildenvironment-targetbuildenvironment-unique/1764271/1 "2024-03-21T00:53:34Z")

</div>

I am testing 5.4.0 preview 1 from source.

When compiling the project, I get an error about bStrictConformanceMode which has to do with the project changing/interfering the engines files (I don’t remember the exact error message).  
The log said to add BuildEnvironment = TargetBuildEnvironment.Unique; in the target.

The project is now compiling, but this wasn’t needed in 5.3.2.

Does anyone know why this change to the target was needed in 5.4?

Since it is compiling, it is no big deal, I am just curious why.

---

<div class="post-metadata">

**Author:** ![Alex\_Chozabu\_P-B](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alex\_Chozabu\_P-B](https://forums.unrealengine.com/u/Alex_Chozabu_P-B)\
**Post date:** [March 21, 2024, 7:23pm UTC](https://forums.unrealengine.com/t/buildenvironment-targetbuildenvironment-unique/1764271/2 "2024-03-21T19:23:08Z")

</div>

I don’t have a full understanding of whats up here, but noticed there are a bunch of other warnings  
my build.cs had `DefaultBuildSettings = BuildSettingsVersion.V2`  
Checking source, it seems v3 was introduced 5.something and 5.4 has a new default of `DefaultBuildSettings = BuildSettingsVersion.V4` - changing my build.cs to this value resulted in a working build.

---

<div class="post-metadata">

**Author:** ![Sarlack](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sarlack/32/1194542_2.png) [@Sarlack](https://forums.unrealengine.com/u/Sarlack)\
**Post date:** [March 21, 2024, 8:36pm UTC](https://forums.unrealengine.com/t/buildenvironment-targetbuildenvironment-unique/1764271/3 "2024-03-21T20:36:59Z")

</div>

Hi Thanks for the reply 😀

Using `DefaultBuildSettings = BuildSettingsVersion.V4;` I was able to remove `BuildEnvironment = TargetBuildEnvironment.Unique;` and it compiled without error.

I had a second project I couldn’t get to compile at all. It was getting a ton of errors. This fix it as well. 👍

---

<div class="post-metadata">

**Author:** ![rockshurt75](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rockshurt75/32/710355_2.png) [@rockshurt75](https://forums.unrealengine.com/u/rockshurt75)\
**Post date:** [May 4, 2024, 4:56pm UTC](https://forums.unrealengine.com/t/buildenvironment-targetbuildenvironment-unique/1764271/4 "2024-05-04T16:56:29Z")

</div>

Where did you make this changes? Do you have to use Visual Studio?

---

<div class="post-metadata">

**Author:** ![Sarlack](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sarlack/32/1194542_2.png) [@Sarlack](https://forums.unrealengine.com/u/Sarlack)\
**Post date:** [May 5, 2024, 10:53pm UTC](https://forums.unrealengine.com/t/buildenvironment-targetbuildenvironment-unique/1764271/5 "2024-05-05T22:53:34Z")

</div>

I think it is recommended to use Visual Studio, but there may be other IDEs that are compatible with Unreal engine. But you do need to use a C++ project.

All C++ projects have a source folder and the first files in this folder are the \*.Target.cs files, this is where you would add these lines of code.

Here are some examples for a project I names Sarlack.

(The log in the compiler said to use V5, so I switched it from V4 to V5 and everything still compiled OK.)

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/7/8/878c6045724a75309e439f375410a90188fd94d7.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/7/4/574a19fb0194d6a1393795a6a75d13c95d62db76.png)

---

<div class="post-metadata">

**Author:** ![ali.quaker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ali.quaker](https://forums.unrealengine.com/u/ali.quaker)\
**Post date:** [January 3, 2025, 4:24am UTC](https://forums.unrealengine.com/t/buildenvironment-targetbuildenvironment-unique/1764271/6 "2025-01-03T04:24:04Z")

</div>

This WORKS !  
Thanks so much should be accepted as the correct answer.

---

<div class="post-metadata">

**Author:** ![Vexar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vexar/32/1209009_2.png) [@Vexar](https://forums.unrealengine.com/u/Vexar)\
**Post date:** [September 28, 2025, 5:10am UTC](https://forums.unrealengine.com/t/buildenvironment-targetbuildenvironment-unique/1764271/7 "2025-09-28T05:10:28Z")

</div>

You can add a lines like for the 5.7 Preview to get your project working and compiling again.

IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5\_7;  
DefaultBuildSettings = BuildSettingsVersion.V6;
