# Can't build UE5.sln using msbuild with VS 2022 Community Edition

**URL:** <https://forums.unrealengine.com/t/cant-build-ue5-sln-using-msbuild-with-vs-2022-community-edition/583268>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, Platform, UE5-0, question\
**Created:** [June 16, 2022, 9:59am UTC](https://forums.unrealengine.com/t/cant-build-ue5-sln-using-msbuild-with-vs-2022-community-edition/583268 "2022-06-16T09:59:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdcandy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sdcandy](https://forums.unrealengine.com/u/sdcandy)\
**Post date:** [June 16, 2022, 9:59am UTC](https://forums.unrealengine.com/t/cant-build-ue5-sln-using-msbuild-with-vs-2022-community-edition/583268/1 "2022-06-16T09:59:32Z")

</div>

I am trying to build UE5 using msbuild from Visual Studio 2022 Community Edition. In the x64 Native Build Tools Command Prompt for VS 2022. I have run the following commands:

```auto
Y:\UnrealEngine> Setup.bat
Y:\UnrealEngine> GenerateProjectsFiles.bat -2022

```

When I try to build using:

```auto
msbuild UE5.sln /t:rebuild /p:"Configuration=Development Editor" /p:Platform=Win64

```

I get a significant number of errors of the following form:

```auto
"Y:\UnrealEngine\UE5.sln" (rebuild target) (1) ->
"Y:\UnrealEngine\Engine\Intermediate\ProjectFiles\UE5.vcxproj.metaproj" (Rebuild target) (33) ->
"Y:\UnrealEngine\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj" (Rebuild target) (3:31) ->
  Y:\UnrealEngine\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.

```

I followed the instructions in the “Windows” section of the README.md as to what to install within Visual Studio. How do I tell msbuild where the SDK is?

-Andy.

---

<div class="post-metadata">

**Author:** ![Ben\_Cykyria](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ben_cykyria/32/700751_2.png) [@Ben\_Cykyria](https://forums.unrealengine.com/u/Ben_Cykyria)\
**Post date:** [July 1, 2023, 2:22pm UTC](https://forums.unrealengine.com/t/cant-build-ue5-sln-using-msbuild-with-vs-2022-community-edition/583268/2 "2023-07-01T14:22:44Z")

</div>

what msbuild.exe did you use?

I only had success with the executable from the VS2022 install directory.

That’s this path on my PC:  
C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/MSBuild.exe

could you please tell me if you could compile successfully?

I couldn’t compile the engine from command line successfully, unfortunately.

---

<div class="post-metadata">

**Author:** ![miloslavsky9000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@miloslavsky9000](https://forums.unrealengine.com/u/miloslavsky9000)\
**Post date:** [May 25, 2024, 3:57pm UTC](https://forums.unrealengine.com/t/cant-build-ue5-sln-using-msbuild-with-vs-2022-community-edition/583268/3 "2024-05-25T15:57:30Z")

</div>

god bless you
