【发布时间】:2022-01-04 12:13:04
【问题描述】:
我正在尝试在 TeamCity 上构建一个 Unreal 项目。我有一个构建步骤在.NET 运行msbuild (cross-platform MSBuild) 失败。配置为Development Editor。错误:
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v140\Microsoft.Cpp.InvalidPlatform.Targets(22,7): error MSB8007: The Platform for project '<project-file>.vcxproj' is invalid. Platform='arm64'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Platform that doesn't exist for this project.
在本地构建时,平台是Win64(我认为)。但是我不知道在通过 TeamCity 构建时如何设置?
【问题讨论】:
-
您要在 Windows 上构建它的代理还是基于 Linux?不太熟悉
msbuild,但我会首先尝试使您的本地构建类似于它在 TeamCity 中的构建方式。本指南也可能会有所帮助:docs.microsoft.com/en-us/visualstudio/ide/…
标签: .net msbuild teamcity unreal-engine4