GenerateProjectFiles.bat -2017 VS 2017 Error

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.

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

Doug Wilson

Hi Doug,

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

137016-screen.png

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.

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.

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.