您当前的位置: 首页 >  ui

开发游戏的老王

暂无认证

  • 4浏览

    0关注

    803博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

虚幻引擎图文笔记:could not be compiled. Try rebuilding from source manually.问题的解决

开发游戏的老王 发布时间:2022-07-27 19:58:17 ,浏览量:4

问题描述

在这里插入图片描述

从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

安装完毕以后就可以生成sln文件了 在这里插入图片描述

关注
打赏
1656935939
查看更多评论
立即登录/注册

微信扫码登录

0.0419s