Visual Studio Online - “指定的解决方案配置“调试|任何 cpu”无效”

Max*_*siv 5 visual-studio azure-devops azure-pipelines

我需要在 Visual Studio Online 下构建 VS 解决方案。但是当我运行它时,我收到一个错误:

C:\a\50009cdf\Mobius-ASG\Prototyping\VCPROJ\SystemAl.sln.metaproj(0,0): Error MSB4126: The specified solution configuration "Debug|any cpu" is invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank to use the default solution configuration.
Run Code Online (Sandbox Code Playgroud)

我尝试将“BuildPlatform”更改为“混合平台”,将“BuildConfiguration”更改为“发布”。但这没有帮助,我得到了同样的错误,但有新的值:

The specified solution configuration "Release|Mixed Platforms" is invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank to use the default solution configuration
Run Code Online (Sandbox Code Playgroud)

我也尝试禁用和删除这个变量,但仍然有同样的错误。我该如何修复它?

Vic*_*SFT 1

要设置项目的配置和平台,请在解决方案资源管理器中右键单击该项目,然后选择“配置管理器”。

在“配置管理器”对话框中,选择所需的配置和平台值。将待处理的更改签入 VSO,然后不带任何参数重新运行构建。您现在应该可以成功运行构建。 在此输入图像描述