【问题标题】:How to set 'Platform' when running MSBuild on .NET在 .NET 上运行 MSBuild 时如何设置“平台”
【发布时间】: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 构建时如何设置?

【问题讨论】:

标签: .net msbuild teamcity unreal-engine4


【解决方案1】:

这可以在 Teamcity 的 .NET 构建步骤中设置。 Command Line Parameters 有一个字段,您可以在其中包含

/p:Platform="<platform>" 

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-06-23
    • 2012-05-21
    • 2023-01-05
    • 1970-01-01
    • 2015-07-12
    • 1970-01-01
    • 2012-10-21
    • 1970-01-01
    相关资源
    最近更新 更多