I try to create a new C++ project in UE4.22.0 with visual studio 2017. but it failed and showed:
The project could not be compiled. Would you like to open it in Visual Studio?
Running D:/UE4/UE_4.22/Engine/Binaries/DotNET/UnrealBuildTool.exe Development Win64 -Project=“D:/UE4/UE_4.22/MyProject2/MyProject2.uproject” -TargetType=Editor -Progress -NoHotReloadFromIDE
Creating makefile for MyProject2Editor (no existing makefile)
@progress push 5%
Parsing headers for MyProject2Editor
Running UnrealHeaderTool “D:??4\UE_4.22\MyProject2\MyProject2.uproject” “D:??4\UE_4.22\MyProject2\Intermediate\Build\Win64\MyProject2Editor\Development\MyProject2Editor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -installed
Reflection code generated for MyProject2Editor in 16.015236 seconds
@progress pop
Using Visual Studio 2017 14.16.27023 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023) and Windows 10.0.17763.0 SDK (C:\Program Files (x86)\Windows Kits\10).
Building 11 actions with 4 processes…
@progress ‘Compiling C++ source code…’ 0%
Unhandled Exception: System.ComponentModel.Win32Exception: The system cannot find the file specified
at Tools.DotNETCommon.ManagedProcess…ctor(ManagedProcessGroup Group, String FileName, String CommandLine, String WorkingDirectory, IReadOnlyDictionary2 Environment, Byte[] Input, ProcessPriorityClass Priority) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\DotNETCommon\DotNETUtilities\ManagedProcess.cs:line 369 at UnrealBuildTool.ParallelExecutor.ExecuteAction(ManagedProcessGroup ProcessGroup, BuildAction Action, List
1 CompletedActions, AutoResetEvent CompletedEvent) in D:\Build++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Executors\ParallelExecutor.cs:line 252
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()