# Failure of building ue4 from source code: error MSB3644: The reference assemblies for .NETFramework,Version=v4.6.2 were not found

**URL:** <https://forums.unrealengine.com/t/failure-of-building-ue4-from-source-code-error-msb3644-the-reference-assemblies-for-netframework-version-v4-6-2-were-not-found/492533>\
**Category:** Getting Started & Setup\
**Tags:** source-code, UE4-25, unreal-engine, Visual-Studio, UE4, question\
**Created:** [January 30, 2022, 2:10pm UTC](https://forums.unrealengine.com/t/failure-of-building-ue4-from-source-code-error-msb3644-the-reference-assemblies-for-netframework-version-v4-6-2-were-not-found/492533 "2022-01-30T14:10:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_3b730ddd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3b730ddd](https://forums.unrealengine.com/u/anonymous_user_3b730ddd)\
**Post date:** [January 30, 2022, 2:10pm UTC](https://forums.unrealengine.com/t/failure-of-building-ue4-from-source-code-error-msb3644-the-reference-assemblies-for-netframework-version-v4-6-2-were-not-found/492533/1 "2022-01-30T14:10:50Z")

</div>

I followed the official guide and tried to build unreal engine from source code from github. However, when I tried to run the GenerateProjectFiles.bat, it throws the error:  
`C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targe ts(1217,5): error MSB3644: The reference assemblies for .NETFramework,Version=v4.6.2 were not found. To resolve this, i nstall the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can downloa d .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks [C:\Program Files\Unreal\UnrealEngine-4.25\En gine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj] `

The version of unreal is `4.25` and version of VS is community 19 ( I also tried community 2022, same)

I found two possible solutions and tried, but neither worked for me.

1. I downloaded the .NET Framework 4.6.2 Develop Pack in `https://docs.microsoft.com/en-us/dotnet/framework/install/guide-for-developers`, and installed it. But nothing changed.
2. I used the Visual Studio Installer → Modify → Individual Components to install .NET Framework 4.6.2 SDK & targeting pack.

And when I opened the `UnrealBuildTool.csproj` in VS, I found I can’t open it normally and absence of framework was told. I check the project property and found in Target Framework, only the core .net 2.0 3.0 3.5 can be chosen.

I doubt I made a mistake in env variable setting. I notice that System variable about .net is `C:\Program Files\dotnet\`, but in there the sdk folder only contains `5.0404` (C:\Program Files\dotnet\sdk\5.0.404)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3b730ddd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3b730ddd](https://forums.unrealengine.com/u/anonymous_user_3b730ddd)\
**Post date:** [February 1, 2022, 8:34am UTC](https://forums.unrealengine.com/t/failure-of-building-ue4-from-source-code-error-msb3644-the-reference-assemblies-for-netframework-version-v4-6-2-were-not-found/492533/2 "2022-02-01T08:34:45Z")

</div>

Anyone has idea? 🥲 I tried reinstall VS, nothing changed…

---

<div class="post-metadata">

**Author:** ![Xblade724](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xblade724/32/600590_2.png) [@Xblade724](https://forums.unrealengine.com/u/Xblade724)\
**Post date:** [January 18, 2023, 2:38am UTC](https://forums.unrealengine.com/t/failure-of-building-ue4-from-source-code-error-msb3644-the-reference-assemblies-for-netframework-version-v4-6-2-were-not-found/492533/3 "2023-01-18T02:38:20Z")

</div>

I have this issue, too. Tried grabbing 4.6.2 dev version and nada. Not even after reboot.

---

<div class="post-metadata">

**Author:** ![Ciprian\_Stanciu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ciprian_stanciu/32/1194635_2.png) [@Ciprian\_Stanciu](https://forums.unrealengine.com/u/Ciprian_Stanciu)\
**Post date:** [March 24, 2024, 9:39am UTC](https://forums.unrealengine.com/t/failure-of-building-ue4-from-source-code-error-msb3644-the-reference-assemblies-for-netframework-version-v4-6-2-were-not-found/492533/4 "2024-03-24T09:39:41Z")

</div>

You need to clean the UnrealBuildTool folder ( \Engine\Source\Programs\UnrealBuildTool ) of any temporary data (bin/obj/.vs), I had a previous 5.0 build and it was interfering with a 4.27 switch

---

<div class="post-metadata">

**Author:** ![ANAKH](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ANAKH](https://forums.unrealengine.com/u/ANAKH)\
**Post date:** [August 30, 2024, 1:11pm UTC](https://forums.unrealengine.com/t/failure-of-building-ue4-from-source-code-error-msb3644-the-reference-assemblies-for-netframework-version-v4-6-2-were-not-found/492533/5 "2024-08-30T13:11:22Z")

</div>

Thanks a lot ,this problem took me too much time . Now, i just delete the directory and revert it in git. All things right.

---

<div class="post-metadata">

**Author:** ![zhaojunmeng](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zhaojunmeng](https://forums.unrealengine.com/u/zhaojunmeng)\
**Post date:** [April 11, 2025, 4:03am UTC](https://forums.unrealengine.com/t/failure-of-building-ue4-from-source-code-error-msb3644-the-reference-assemblies-for-netframework-version-v4-6-2-were-not-found/492533/6 "2025-04-11T04:03:01Z")

</div>

Thanks, it works for me.
