# How to fix this error with GenerateProjectFiles.bat?

**URL:** <https://forums.unrealengine.com/t/how-to-fix-this-error-with-generateprojectfiles-bat/388812>\
**Category:** Getting Started & Setup\
**Tags:** generateprojectfiles, unreal-engine, question\
**Created:** [March 23, 2017, 8:37pm UTC](https://forums.unrealengine.com/t/how-to-fix-this-error-with-generateprojectfiles-bat/388812 "2017-03-23T20:37:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![allergybiscuit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@allergybiscuit](https://forums.unrealengine.com/u/allergybiscuit)\
**Post date:** [March 23, 2017, 8:37pm UTC](https://forums.unrealengine.com/t/how-to-fix-this-error-with-generateprojectfiles-bat/388812/1 "2017-03-23T20:37:02Z")

</div>

I have reinstalled visualstudios2015, and it did not fix my problem. I’m not sure if it matters, but I don’t have an ADM processor, and it is present in the error. I have built this project before, and it worked. I re-downloaded it from git, and now it is not working. Any help would be appreciated!

Setting up Unreal Engine 4 project files…  
C:\Program Files (x86)\MSBuild\14.0\bin\amd64\Microsoft.Common.CurrentVersion.t  
argets(1098,5): error MSB3644: The reference assemblies for framework “.NETFram  
ework,Version=v4.5” were not found. To resolve this, install the SDK or Targeti  
ng Pack for this framework version or retarget your application to a version of  
the framework for which you have the SDK or Targeting Pack installed. Note tha  
t assemblies will be resolved from the Global Assembly Cache (GAC) and will be  
used in place of reference assemblies. Therefore your assembly may not be corre  
ctly targeted for the framework you intend. [D:\STARBROSGIT\UnrealEngine\Engine  
\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]

GenerateProjectFiles ERROR: UnrealBuildTool failed to compile.

Press any key to continue . . .

---

<div class="post-metadata">

**Author:** ![Fitz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fitz/32/1078894_2.png) [@Fitz](https://forums.unrealengine.com/u/Fitz)\
**Post date:** [March 23, 2017, 9:13pm UTC](https://forums.unrealengine.com/t/how-to-fix-this-error-with-generateprojectfiles-bat/388812/2 "2017-03-23T21:13:32Z")

</div>

Hi Allergybiscuit,

Based on the output, my intuition is that you are missing the Windows 8 SDK which would have installed the .NET 4.5 framework.

You can find a download here:

> **[Windows SDK and emulator archive](https://developer.microsoft.com/en-us/windows/downloads/sdk-archive/)**
>
> Download and install previous Windows SDK and emulator releases for development on earlier versions of the Windows and Windows phone platforms.

Let me know if this fixed your issue or if you continue to receive this error afterward.

Cheers,

Jonathan
