# UE5.1 VS2022 C++ Build Error With MSB3073

**URL:** <https://forums.unrealengine.com/t/ue5-1-vs2022-c-build-error-with-msb3073/694392>\
**Category:** Platform & Builds\
**Tags:** Builds, unreal-engine, UE5-0\
**Created:** [November 19, 2022, 2:02pm UTC](https://forums.unrealengine.com/t/ue5-1-vs2022-c-build-error-with-msb3073/694392 "2022-11-19T14:02:25Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![973044](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@973044](https://forums.unrealengine.com/u/973044)\
**Post date:** [November 19, 2022, 2:02pm UTC](https://forums.unrealengine.com/t/ue5-1-vs2022-c-build-error-with-msb3073/694392/1 "2022-11-19T14:02:25Z")

</div>

vs2022 error

```auto
Severity	Code	Description	Project	File	Line	Suppression State
Error	MSB3073	The command "D:\UE_5.1\Engine\Build\BatchFiles\Build.bat CPPEditor Win64 Development -Project="D:\UnrealProject\CPP\CPP.uproject" -WaitMutex -FromMsBuild" exited with code 6.	CPP	C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets	44	
live coding detai

```

live coding detail

```auto
Running D:\UE_5.1\Engine\Build\BatchFiles\Build.bat -Target="CPPEditor Win64 Development -Project=""D:/UnrealProject/CPP/CPP.uproject""" -LiveCoding -LiveCodingModules="D:/UE_5.1/Engine/Intermediate/LiveCodingModules.txt" -LiveCodingManifest="D:/UE_5.1/Engine/Intermediate/LiveCoding.json" -WaitMutex -LiveCodingLimit=100
  Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" -Target="CPPEditor Win64 Development -Project=""D:/UnrealProject/CPP/CPP.uproject""" -LiveCoding -LiveCodingModules="D:/UE_5.1/Engine/Intermediate/LiveCodingModules.txt" -LiveCodingManifest="D:/UE_5.1/Engine/Intermediate/LiveCoding.json" -WaitMutex -LiveCodingLimit=100
  Log file: C:\Users\Ruiz\AppData\Local\UnrealBuildTool\Log.txt
  Building CPPEditor...
  Using Visual Studio 2022 14.33.31631 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629) and Windows 10.0.22621.0 SDK (C:\Program Files (x86)\Windows Kits\10).

```

I met a MSB3073 problem when I build my script in vs2022. But i could use the Live Coding to build the project , and the Actor Class worked . what happen ? Someone can tell ?

---

<div class="post-metadata">

**Author:** ![onedev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/onedev/32/639026_2.png) [@onedev](https://forums.unrealengine.com/u/onedev)\
**Post date:** [January 3, 2023, 3:54am UTC](https://forums.unrealengine.com/t/ue5-1-vs2022-c-build-error-with-msb3073/694392/2 "2023-01-03T03:54:10Z")

</div>

Hi!

I believe that found the problem, if the Live Coding configuration of integration is enable in your Unreal Engine 5, can be this that are creating the conflict of **Mutex** 👀

Try disable the Live Coding or press Ctrl+Alt+F11 in the editor(VS2022) or game, and try compile again.

This information are in a log file from Unreal Engine 5 in:

**_USERNAME_/AppData/Local/UnrealBuildTool/Log.txt**

See below the complete message:

Checking for live coding mutex: Global\LiveCoding\_D++Epic Games+UE\_5.1+Engine+Binaries+Win64+UnrealEditor.exe  
Unable to build while Live Coding is active. Exit the editor and game, or press Ctrl+Alt+F11 if iterating on code in the editor or game  
BuildException: Unable to build while Live Coding is active. Exit the editor and game, or press Ctrl+Alt+F11 if iterating on code in the editor or game  
at UnrealBuildTool.HotReload.CheckForLiveCodingSessionActive(TargetDescriptor TargetDescriptor, TargetMakefile Makefile, BuildConfiguration BuildConfiguration, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\HotReload.cs:line 231  
at UnrealBuildTool.BuildMode.Build(TargetMakefile[] Makefiles, List`1 TargetDescriptors, BuildConfiguration BuildConfiguration, BuildOptions Options, FileReference WriteOutdatedActionsFile, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 526  
at UnrealBuildTool.BuildMode.Execute(CommandLineArguments Arguments, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 242  
at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 648  
WriteFileIfChanged() wrote 0 changed files of 0 requested writes.

have many more informations, but are personal information from my project and path from ssd 😄

---

<div class="post-metadata">

**Author:** ![onedev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/onedev/32/639026_2.png) [@onedev](https://forums.unrealengine.com/u/onedev)\
**Post date:** [January 3, 2023, 3:58am UTC](https://forums.unrealengine.com/t/ue5-1-vs2022-c-build-error-with-msb3073/694392/3 "2023-01-03T03:58:02Z")

</div>

> [@973044](#):
>
> `MSB3073`

I have same problem with VS2022 in C++, follow the commentary from [reddit](([Reddit - Dive into anything](https://www.reddit.com/r/unrealengine/comments/req751/unreal_msb3073_code6_please_resolve_this_error/)). see the comentary from _Silent\_Power2350_ user.

Is something like a “deadlock” , “same process trying access the same file”

Appears that the MSbuild and ue5 Build are in conflict, the flags **-WaitMutex** and **-FromMsBuild** return a value error from MSbuild and so the ue5 Build return the “final error”

---

<div class="post-metadata">

**Author:** ![J0hn-C0nn0r](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@J0hn-C0nn0r](https://forums.unrealengine.com/u/J0hn-C0nn0r)\
**Post date:** [March 27, 2023, 12:44am UTC](https://forums.unrealengine.com/t/ue5-1-vs2022-c-build-error-with-msb3073/694392/4 "2023-03-27T00:44:53Z")

</div>

I’m getting this error in both VS2022 and Rider  
I even restarted the computer and it still did it

---

<div class="post-metadata">

**Author:** ![onedev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/onedev/32/639026_2.png) [@onedev](https://forums.unrealengine.com/u/onedev)\
**Post date:** [March 27, 2023, 1:51am UTC](https://forums.unrealengine.com/t/ue5-1-vs2022-c-build-error-with-msb3073/694392/5 "2023-03-27T01:51:25Z")

</div>

Hi!

you try disable the Live Coding ?

See the post above: [UE5.1 VS2022 C++ Build Error With MSB3073 - #2 by onedev](https://forums.unrealengine.com/t/ue5-1-vs2022-c-build-error-with-msb3073/694392/2)

---

<div class="post-metadata">

**Author:** ![utopia.Game2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/utopia.game2/32/763789_2.png) [@utopia.Game2](https://forums.unrealengine.com/u/utopia.Game2)\
**Post date:** [July 19, 2023, 6:13am UTC](https://forums.unrealengine.com/t/ue5-1-vs2022-c-build-error-with-msb3073/694392/6 "2023-07-19T06:13:59Z")

</div>

Each time you got this ugly error  
1.close the unreal  
2.close visual studio  
3.go to project file → binaries → win64 → delete the files inside that  
4.run visual studio  
5.in right side → click in Game File → right Click on project name → Rebuild  
6. then that way but Build  
IF you got success from two Above section THEN  
7.ctrl+F5 to run unreal

its worked for me after 1 day searching in this poor community

---

<div class="post-metadata">

**Author:** ![zhoudian64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zhoudian64](https://forums.unrealengine.com/u/zhoudian64)\
**Post date:** [August 10, 2023, 8:06am UTC](https://forums.unrealengine.com/t/ue5-1-vs2022-c-build-error-with-msb3073/694392/7 "2023-08-10T08:06:58Z")

</div>

Thanks a lot! 💯

---

<div class="post-metadata">

**Author:** ![Kyndred](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kyndred](https://forums.unrealengine.com/u/Kyndred)\
**Post date:** [September 14, 2023, 4:57pm UTC](https://forums.unrealengine.com/t/ue5-1-vs2022-c-build-error-with-msb3073/694392/8 "2023-09-14T16:57:07Z")

</div>

This worked for me, thanks a lot for posting the solution.

---

<div class="post-metadata">

**Author:** ![SCV-ReadytoGo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SCV-ReadytoGo](https://forums.unrealengine.com/u/SCV-ReadytoGo)\
**Post date:** [September 23, 2023, 7:29pm UTC](https://forums.unrealengine.com/t/ue5-1-vs2022-c-build-error-with-msb3073/694392/9 "2023-09-23T19:29:02Z")

</div>

In my case it only happens when I run it as a development server in VSC 2022, because when I use development Editor it does not happen and the application runs well, but I need to run it as a server since I am using AmazonGameLift, is there a solution?

---

<div class="post-metadata">

**Author:** ![Mr.Patooooo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mr.Patooooo](https://forums.unrealengine.com/u/Mr.Patooooo)\
**Post date:** [September 27, 2023, 6:04pm UTC](https://forums.unrealengine.com/t/ue5-1-vs2022-c-build-error-with-msb3073/694392/10 "2023-09-27T18:04:23Z")

</div>

This worked for me too. I really appreciate your help ✌

---

<div class="post-metadata">

**Author:** ![SCV-ReadytoGo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SCV-ReadytoGo](https://forums.unrealengine.com/u/SCV-ReadytoGo)\
**Post date:** [September 28, 2023, 4:01am UTC](https://forums.unrealengine.com/t/ue5-1-vs2022-c-build-error-with-msb3073/694392/11 "2023-09-28T04:01:19Z")

</div>

please could you help me? i have this error

_Severity Code Description Project File Line Status Deleted_  
_Error MSB3073_

Things I’ve already tried

delete the contents of Binaries, DerivedCacheData, and delete folders from Saved, Intermidiate as well as the sln file also right click Generate Visual Studio files  
installing more recent .net versions, restart and recompile, disable and enable live coding, from the editor this only happens in Development Server VS2022 mode, Development Editor VS2022 mode does work correctly, but since I am following the integration with GameLift directly from the documentation, I cannot find the error

---

<div class="post-metadata">

**Author:** ![Gameartist3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gameartist3d/32/756920_2.png) [@Gameartist3d](https://forums.unrealengine.com/u/Gameartist3d)\
**Post date:** [September 28, 2023, 7:16pm UTC](https://forums.unrealengine.com/t/ue5-1-vs2022-c-build-error-with-msb3073/694392/12 "2023-09-28T19:16:26Z")

</div>

This worked for me as well.

---

<div class="post-metadata">

**Author:** ![SCV-ReadytoGo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SCV-ReadytoGo](https://forums.unrealengine.com/u/SCV-ReadytoGo)\
**Post date:** [September 29, 2023, 2:47pm UTC](https://forums.unrealengine.com/t/ue5-1-vs2022-c-build-error-with-msb3073/694392/13 "2023-09-29T14:47:46Z")

</div>

hello, worked as Development Server → Win64 → Run??

---

<div class="post-metadata">

**Author:** ![Gameartist3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gameartist3d/32/756920_2.png) [@Gameartist3d](https://forums.unrealengine.com/u/Gameartist3d)\
**Post date:** [October 5, 2023, 4:17pm UTC](https://forums.unrealengine.com/t/ue5-1-vs2022-c-build-error-with-msb3073/694392/14 "2023-10-05T16:17:41Z")

</div>

I’m using Development Editor-\>Win64-\>“ProjectName”

---

<div class="post-metadata">

**Author:** ![SCV-ReadytoGo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SCV-ReadytoGo](https://forums.unrealengine.com/u/SCV-ReadytoGo)\
**Post date:** [October 5, 2023, 5:06pm UTC](https://forums.unrealengine.com/t/ue5-1-vs2022-c-build-error-with-msb3073/694392/15 "2023-10-05T17:06:04Z")

</div>

hello, Yes it works as an editor but when I try to build a Windows application as a server I get the error again, I mean I need it to work from VS 2022 as a development server, do you know any way to achieve this?

---

<div class="post-metadata">

**Author:** ![Renato\_Felix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Renato\_Felix](https://forums.unrealengine.com/u/Renato_Felix)\
**Post date:** [November 8, 2023, 12:29am UTC](https://forums.unrealengine.com/t/ue5-1-vs2022-c-build-error-with-msb3073/694392/16 "2023-11-08T00:29:10Z")

</div>

This worked for me! Thank you!

---

<div class="post-metadata">

**Author:** ![nappa0326](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nappa0326](https://forums.unrealengine.com/u/nappa0326)\
**Post date:** [November 20, 2023, 6:26am UTC](https://forums.unrealengine.com/t/ue5-1-vs2022-c-build-error-with-msb3073/694392/17 "2023-11-20T06:26:45Z")

</div>

This solution worked for me too. Thanks a lot! 😍

---

<div class="post-metadata">

**Author:** ![SumbodySumwher](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SumbodySumwher](https://forums.unrealengine.com/u/SumbodySumwher)\
**Post date:** [November 20, 2023, 11:24am UTC](https://forums.unrealengine.com/t/ue5-1-vs2022-c-build-error-with-msb3073/694392/18 "2023-11-20T11:24:51Z")

</div>

The problem in my case was that I was missing a PublicDependancy. Source of my fix:

> <https://stackoverflow.com/questions/73445397/im-having-problems-with-uuserwidgets-on-ue5/74112358#74112358>

---

<div class="post-metadata">

**Author:** ![hanworld](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hanworld](https://forums.unrealengine.com/u/hanworld)\
**Post date:** [December 14, 2023, 2:04pm UTC](https://forums.unrealengine.com/t/ue5-1-vs2022-c-build-error-with-msb3073/694392/19 "2023-12-14T14:04:47Z")

</div>

Very Good!!!

---

<div class="post-metadata">

**Author:** ![Fabula](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fabula](https://forums.unrealengine.com/u/Fabula)\
**Post date:** [January 10, 2024, 12:12pm UTC](https://forums.unrealengine.com/t/ue5-1-vs2022-c-build-error-with-msb3073/694392/20 "2024-01-10T12:12:25Z")

</div>

have you found a solution or what happened to you?

[Next page](https://forums.unrealengine.com/t/ue5-1-vs2022-c-build-error-with-msb3073/694392.md?page=2)
