问题描述
从SVN上Checkout的必要文件,在其它电脑上构建过一次没有问题,结果到了这台比较新的电脑上出现了如下问题⬇:
解决办法
尝试生成sln文件⬇:
弹出了如下提示⬇:
Running D:/Unreal Engine/UE_5.0/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe -projectfiles -project="XXXXXXX.uproject" -game -rocket -progress -log="XXXXXX/Saved/Logs/UnrealVersionSelector-2022.07.26-09.04.16.log"
A fatal error occurred. The required library hostfxr.dll could not be found.
If this is a self-contained application, that library should exist in [D:\Unreal Engine\UE_5.0\Engine\Binaries\DotNET\UnrealBuildTool\].
If this is a framework-dependent application, install the runtime in the global location [C:\Program Files\dotnet] or use the DOTNET_ROOT environment variable to specify the runtime location or register the runtime location in [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x64\InstallLocation].
The .NET Core runtime can be found at:
- https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=win10-x64
在.NET Core官网下载并安装.NET Core。
于是又出现了如下提示
Running D:/Unreal Engine/UE_5.0/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe -projectfiles -project="XXXXXXX.uproject" -game -rocket -progress -log="XXXXXXX/Saved/Logs/UnrealVersionSelector-2022.07.26-09.16.23.log"
You must install or update .NET to run this application.
App: D:\Unreal Engine\UE_5.0\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.exe
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '3.1.0' (x64)
.NET location: C:\Program Files\dotnet\
The following frameworks were found:
6.0.7 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Learn about framework resolution:
https://aka.ms/dotnet/app-launch-failed
To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=3.1.0&arch=x64&rid=win10-x64
在这里下载并安装framework的指定版本,我这里要求安装3.1.0
版文章来源:https://www.toymoban.com/news/detail-516410.html
安装完毕以后就可以生成sln文件了
文章来源地址https://www.toymoban.com/news/detail-516410.html
到了这里,关于虚幻引擎图文笔记:could not be compiled. Try rebuilding from source manually.问题的解决的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!