Recieving Following error:The project could not be compiled. Would you like to open it in Visual Studio?

I just started with Unrea Editor and it told me to DL Visual Studio 17 which I did (Communtity Version licensed to me) When I tried to open a basic C++ within editor I recieve the following error:
The project could not be compiled. Would you like to open it in Visual Studio?

Running C:/Program Files/Epic Games/UE_4.16/Engine/Binaries/DotNET/UnrealBuildTool.exe MyProject2 Development Win64 -project="C:/Users/Cruise McClarren/Documents/Unreal Projects/MyProject2/MyProject2.uproject" -editorrecompile -progress -NoHotReloadFromIDE
Performing full C++ include scan (building a new target)
Creating makefile for MyProject2 (no existing makefile)
Visual Studio 2017 is installed, but is missing the C++ toolchain. Please verify that the "VC++ 2017 toolset" component is selected in the Visual Studio 2017 installation options.
@progress push 5%
Parsing headers for MyProject2Editor
  Running UnrealHeaderTool "C:\Users\Cruise McClarren\Documents\Unreal Projects\MyProject2\MyProject2.uproject" "C:\Users\Cruise McClarren\Documents\Unreal Projects\MyProject2\Intermediate\Build\Win64\MyProject2Editor\Development\MyProject2Editor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
Reflection code generated for MyProject2Editor in 11.2485554 seconds
@progress pop
ERROR: Visual Studio 2015 must be installed in order to build this target.

When I try to build it outside it won’t let me. How do I resolve this?

When I choose to open in VS I reveive this error:
Could not edit the code editing IDE. C:/Users/Cruise McClarren/Documents/Unreal Projects/MyProject2/MyProject2.sln could not be found.
I would like to start learning to use this engine but I need to get past this hurdle. Please help :slight_smile:

Hello,
Open the the windows menu by pressing the windows key and then type in “visual studio installer”, then open the installer and press on “modify” (under your visual studio 2017 install) and choose the needed tools (the easiest would be to select them all) and click on modify on the bottom-right hand corner to confirm. The tools will start installing
Good luck with UE4 :wink:

Unreal execly tells you what is wrong

Visual Studio 2017 is installed, but is missing the C++ toolchain. Please verify that the "VC++ 2017 toolset" component is selected in the Visual Studio 2017 installation options.

Since VS2015 (if i’m not mistaken), C++ support is unchecked by default (they want you to use C# ;p), so you need select it yourself. You can edit your VS installation in control panel → programs and install C++ toolset to it

UE4 creates empty code module and automatically make it dependable to your project, that why it needs C++ compiler out of the bat to build that empty module in order for your project to work

,Can you help me? Running D:/UE_4.16/Engine/Binaries/DotNET/UnrealBuildTool.exe MyProject4 Development Win64 -project=“C:/Users/user/Documents/Visual Studio 2017/Projects/MyProject4/MyProject4.uproject” -editorrecompile -progress -NoHotReloadFromIDE
Performing full C++ include scan (building a new target)
Creating makefile for MyProject4 (no existing makefile)
@progress push 5%
Parsing headers for MyProject4Editor
Running UnrealHeaderTool “C:\Users\user\Documents\Visual Studio 2017\Projects\MyProject4\MyProject4.uproject” “C:\Users\user\Documents\Visual Studio 2017\Projects\MyProject4\Intermediate\Build\Win64\MyProject4Editor\Development\MyProject4Editor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -installed
Reflection code generated for MyProject4Editor in 11.8076101 seconds
@progress pop
ERROR: No 32-bit compiler toolchain found in C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe
Thx.

Hi, I had the same issue and fixed it installing the VC++ toolset 2015 (I work on VC 2017),
Cordially.

Yes, Unreal 4.17 (and 4.16) still use VS 2105 Build Tools (VC++ 2015 toolset).

Note that the first error in OP reads

Please verify that the “VC++ 2017
toolset” component is selected

If you have both VS’s properly installed it may be possible that Unreal still uses VS 2015 in spite of specifying 2017. It happened to me and I was lucky enough to be told by somebody in the community about the error above: note the 14.0 while I intended to use VS 2017 (15.0).
It might be the case that installing the VC++ toolset 2015 only covers things up.
If one’s intention is to use VS 2017 my advice is to uninstall VS 2015 completely and most important: forcibly by TotalUninstaller for Visual Studio.
I did that and no error shows up (note that I don’t have VC++ toolset 2015 installed!) and I am sure I’m using VS 2017.

You’re supposed to post an answer as a solution not a request. Please respect the rules.
Moreover, you have the same problem as OP, so all the answers in here pertain to you as well.

The 2015 tools are included in the 2017 VS install. You just have to select it.
This did work.

This is not how the installer works anymore, or at least on my machine. And btw, I have the same issue. I did nothing but disabled some irrelevant plugins, most in Beta. I even reinstalled Unreal and nuked its Config and Intermediate folders. That reverted the plugins… but VS is f*ed, for no reason I can understand.