# MSB4018: The 'value' task failed unexpectedly 

**URL:** <https://forums.unrealengine.com/t/msb4018-the-value-task-failed-unexpectedly/2697839>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [February 6, 2026, 3:20pm UTC](https://forums.unrealengine.com/t/msb4018-the-value-task-failed-unexpectedly/2697839 "2026-02-06T15:20:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blinkyjmardis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Blinkyjmardis](https://forums.unrealengine.com/u/Blinkyjmardis)\
**Post date:** [February 6, 2026, 3:20pm UTC](https://forums.unrealengine.com/t/msb4018-the-value-task-failed-unexpectedly/2697839/1 "2026-02-06T15:20:06Z")

</div>

Could someone please help me get past this? I unistalled and reinstalled visual studio but I can’t get past this error to build my project. What do I do?

---

<div class="post-metadata">

**Author:** ![brs-sebascova](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/brs-sebascova/32/1052483_2.png) [@brs-sebascova](https://forums.unrealengine.com/u/brs-sebascova)\
**Post date:** [February 6, 2026, 3:53pm UTC](https://forums.unrealengine.com/t/msb4018-the-value-task-failed-unexpectedly/2697839/2 "2026-02-06T15:53:51Z")

</div>

Hello there @Blinkyjmardis!

We would need more details for this scenario, like checking the full error log, or if there’s a full trace of the build, to pinpoint where the conflict is in the process. Also, how does your setup look like, what version of UE and VS are you using, etc..

Considering the error itself, type MSB4018, there was one thread with a very similar crash, that found a solution via clearing up their **BuildConfiguration.xml** config file, and allowing the project to re-generate it. Please test this method for your scenario. There are other options in the thread as well, linked below:

> [@The "SetEnv" task failed unexpectedly](https://forums.unrealengine.com/t/the-setenv-task-failed-unexpectedly/2675115):
>
> I had just upgraded to UE 5.7 and Visual Studio 2026. I created a fresh new C++ project using the third person template. When I go to build the project in Visual Studio I keep getting this error: 1\>C:\Program Files\Microsoft Visual Studio\18\Community\MSBuild\Microsoft\VC\v180\Microsoft.Cpp.Current.targets(102,5): error MSB4018: The “SetEnv” task failed unexpectedly. 1\>C:\Program Files\Microsoft Visual Studio\18\Community\MSBuild\Microsoft\VC\v180\Microsoft.Cpp.Current.targets(102,5): error MS…
