环境
已经安装VS2022
问题
不同的UE版本依赖不同的.NET版本进行UE的烘培打包,因此在不同的项目上需要安装不同的.NET版本
UE5.0依赖3.1.0
UE5.1以后版本依赖6.0.18
问题描述
Running E:/UE_5.0/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe -projectfiles -project="E:/yuntiansanhua/ZhongHuaHuaFei/ZhongHuaHuaFei.uproject" -game -rocket -progress -log="E:\yuntiansanhua\ZhongHuaHuaFei/Saved/Logs/UnrealVersionSelector-2023.07.13-09.39.59.log"
You must install or update .NET to run this application.
App: E:\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.18 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
7.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
说明已经安装了6.0.18和7.0.7版本的.NET,但是5.0版本UE中的UnrealBuildTool.exe工具依赖3.1.0
解决方案1
解决方案2
打开VS2022,点击工具>>选择获取工具和功能,打开Visual Studio Installer,点击修改,打开单个组件,选择.NET3.1 Core运行时组件