# GenerateProjectFiles fails and .NET Framework 4.6.2 cannot be installed

**URL:** <https://forums.unrealengine.com/t/generateprojectfiles-fails-and-net-framework-4-6-2-cannot-be-installed/454468>\
**Category:** C++\
**Tags:** Networking, source-code, unreal-engine, generate-project-fil, Visual-Studio, question, CPP\
**Created:** [August 27, 2019, 4:51am UTC](https://forums.unrealengine.com/t/generateprojectfiles-fails-and-net-framework-4-6-2-cannot-be-installed/454468 "2019-08-27T04:51:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mightyenigma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mightyenigma](https://forums.unrealengine.com/u/mightyenigma)\
**Post date:** [August 27, 2019, 4:51am UTC](https://forums.unrealengine.com/t/generateprojectfiles-fails-and-net-framework-4-6-2-cannot-be-installed/454468/1 "2019-08-27T04:51:04Z")

</div>

I cloned Unreal Engine source code from github,  
installed Visual Studio Community 2017 following the setup guide,  
And ran setup.bat.  
then I ran GemerateProjectFiles.bat and it always gives an error that it needs .NET Framework 4.6.2 in the reference assemblies.

So i go back to visual studio installer and it shows that .NET Framework 4.6, 4.6.1, 4.7, and 4.7.1 etc are all installed, and my regedit shows 4.8 is installed.  
But vs installer does not list 4.6.2 anywhere as a component to install. Also the reference assemblies folder shows all these versions except 4.6.2. It is the only one missing.

So since vs installer cannot do it, I downloaded a 4.6.2 installer from microsoft website and ran it, but it quits with an error saying that 4.6.2 or later is already installed.

I tried removing all .NET Framework components via the vs installer but that 4.6.2 installer still says I have 4.6.2 or later and GenerateProjectFiles still says I need the reference assembly for it.

So i can’t install it because i already have it, but I can’t build Unreal engine because I don’t have it. This is very confusing.

---

<div class="post-metadata">

**Author:** ![mightyenigma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mightyenigma](https://forums.unrealengine.com/u/mightyenigma)\
**Post date:** [August 28, 2019, 3:28am UTC](https://forums.unrealengine.com/t/generateprojectfiles-fails-and-net-framework-4-6-2-cannot-be-installed/454468/2 "2019-08-28T03:28:19Z")

</div>

Here’s a longer story of how I got to this point:

> **[visual studio 2017 stuck building ue4](https://forums.unrealengine.com/questions/917391/visual-studio-2017-stuck-building-ue4.html)**
>
> While attempting to add a source-code plugin to my source-code build of UE4, I somehow messed it up and it won't launch. So I'm doing a clean rebuild. I deleted the Saved and Intermediate folders, marked all the files so they're not Read-only (in...

---

<div class="post-metadata">

**Author:** ![splodginald](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@splodginald](https://forums.unrealengine.com/u/splodginald)\
**Post date:** [August 28, 2019, 11:26am UTC](https://forums.unrealengine.com/t/generateprojectfiles-fails-and-net-framework-4-6-2-cannot-be-installed/454468/3 "2019-08-28T11:26:13Z")

</div>

See my comment on your linked post.

---

<div class="post-metadata">

**Author:** ![mightyenigma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mightyenigma](https://forums.unrealengine.com/u/mightyenigma)\
**Post date:** [August 28, 2019, 3:20pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-fails-and-net-framework-4-6-2-cannot-be-installed/454468/4 "2019-08-28T15:20:47Z")

</div>

Thank you 🙂 I’ll try that and let you know how it goes.

---

<div class="post-metadata">

**Author:** ![mightyenigma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mightyenigma](https://forums.unrealengine.com/u/mightyenigma)\
**Post date:** [August 28, 2019, 6:37pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-fails-and-net-framework-4-6-2-cannot-be-installed/454468/5 "2019-08-28T18:37:18Z")

</div>

Turns out I needed this:

> **[Download .NET Framework 4.6.2 Developer Pack Offline Installer](https://dotnet.microsoft.com/en-us/download/dotnet-framework/thank-you/net462-developer-pack-offline-installer)**

---

<div class="post-metadata">

**Author:** ![Imagine-Games](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Imagine-Games](https://forums.unrealengine.com/u/Imagine-Games)\
**Post date:** [July 16, 2021, 12:08am UTC](https://forums.unrealengine.com/t/generateprojectfiles-fails-and-net-framework-4-6-2-cannot-be-installed/454468/6 "2021-07-16T00:08:09Z")

</div>

thank you, spent an hour trying to install unreal on a server , installed all sorts of .net dev packs but this one truly works

---

<div class="post-metadata">

**Author:** ![mmmmGoodDinner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mmmmGoodDinner](https://forums.unrealengine.com/u/mmmmGoodDinner)\
**Post date:** [April 3, 2025, 5:10pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-fails-and-net-framework-4-6-2-cannot-be-installed/454468/7 "2025-04-03T17:10:42Z")

</div>

You’re a boss. Thank you.
