无法使用Visual Studio 2019.7.2编译虚幻引擎4.25

问题描述

当我尝试使用Visual Studio版本29点7点2点编译虚幻引擎版本4点25(4.25)时,出现以下错误。 (vs2019.7.2)或(16.7.2)。

Microsoft Visual Studio社区2019 版本16.7.2

有人知道如何编译吗?

1>------ Build started: Project: HVS,Configuration: Development_Editor x64 ------
1>Using 'git status' to determine working set for adaptive non-unity build (C:\repos).
1>Invalidating makefile for HVSEditor (VisualStudioDTE.Build.cs modified)
1>Building HVSEditor and shadercompileWorker...
1>Using Visual Studio 2019 14.27.29111 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110) and Windows 10.0.18362.0 SDK (C:\Program Files (x86)\Windows Kits\10).
1>Building 5 actions with 12 processes...
1>  [1/5] dte80a.tlh
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets(46,5): error MSB3073: The command "C:\WINDOWS\System32\chcp.com 65001 >NUL 
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets(46,5): error MSB3073:  C:\repos\Engine\Build\BatchFiles\Build.bat -Target="HVSEditor Win64 Development -Project=\"C:\Users\decil\Desktop\HVS_Game\HVS.uproject\"" -Target="shadercompileWorker Win64 Development -Quiet" -WaitMutex -FromMsBuild" exited with code 6.
1>Done building project "HVS.vcxproj" -- Failed.
========== Build: 0 succeeded,1 Failed,2 up-to-date,0 skipped ==========

解决方法

尝试删除目录“ Engine \ Intermediate \ Build \ Win64 \ UE4Editor \ Development \ VisualStudioDTE”并重建。