# GenerateProjectFiles.bat -2017 VS 2017 Error

**URL:** <https://forums.unrealengine.com/t/generateprojectfiles-bat-2017-vs-2017-error/392744>\
**Category:** Pipeline & Plugins\
**Tags:** generateprojectfiles, unreal-engine, unrealbuildtool, Visual-Studio, UE4, CPP, question\
**Created:** [May 4, 2017, 9:09pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-bat-2017-vs-2017-error/392744 "2017-05-04T21:09:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_78dd50a8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_78dd50a8](https://forums.unrealengine.com/u/anonymous_user_78dd50a8)\
**Post date:** [May 4, 2017, 9:09pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-bat-2017-vs-2017-error/392744/1 "2017-05-04T21:09:34Z")

</div>

Hi,

I have installed VS2017; both 2015 and 2017 toolsets are installed aswell… However when I try to build project files from UE4 source with:

```
GenerateProjectFiles.bat -2017

```

I get the following error. Any ideas to let UE4 know about VS 2017 installation path?

```
Setting up Unreal Engine 4 project files...
Binding IntelliSense data... 0%ERROR: Visual Studio 2017 must be installed in order to build this target.
GenerateProjectFiles ERROR: UnrealBuildTool was unable to generate project files.

```

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [May 5, 2017, 7:21pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-bat-2017-vs-2017-error/392744/2 "2017-05-05T19:21:34Z")

</div>

Hey onuraktas-

In your VS2017 setup, please ensure that the boxes for “Desktop development with C++” “.NET desktop development” and “Game development with C++” are checked. Using these settings in the 2017 setup should allow ` GenerateProjectFiles.bat -2017` to run successfully. You can check your installation settings by running the Visual Studio Installer and choosing the “Modify” option.

Cheers

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_78dd50a8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_78dd50a8](https://forums.unrealengine.com/u/anonymous_user_78dd50a8)\
**Post date:** [May 6, 2017, 2:41pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-bat-2017-vs-2017-error/392744/3 "2017-05-06T14:41:55Z")

</div>

Hi ,

Thank you for your reply. Actually they are both checked. Is there any item missing within checkboxes?

![137016-screen.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/2/3/d23e6be757041cd4a2849c6190af460416215136.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [May 8, 2017, 4:08pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-bat-2017-vs-2017-error/392744/4 "2017-05-08T16:08:13Z")

</div>

Comparing your screenshot to my local install, please check the box for “Windows 10 SDK (10.0.14393.0)” in either category (they are linked so checking one will update the other). Additionally, check that the box for the “.NET desktop development” category is checked as well.

---

<div class="post-metadata">

**Author:** ![H8weaver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@H8weaver](https://forums.unrealengine.com/u/H8weaver)\
**Post date:** [April 8, 2019, 8:44pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-bat-2017-vs-2017-error/392744/5 "2019-04-08T20:44:00Z")

</div>

For folks getting to this page when trying to build 4.22 - you need to install VS 2017 plugin for DOTNET 4.6.2 SDK.

---

<div class="post-metadata">

**Author:** ![VaultedSky](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VaultedSky](https://forums.unrealengine.com/u/VaultedSky)\
**Post date:** [April 28, 2019, 7:18pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-bat-2017-vs-2017-error/392744/6 "2019-04-28T19:18:01Z")

</div>

4.22 problem here too - and I definitely have the 4.6.2 .NET Framework SDK and targeting pack. Doesn’t work for me. Very bizarre.
