visual-studio - Visual Studio Online - "The specified solution configuration "Debug|any cpu"is invalid"

标签 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.

我尝试将“BuildPlatform”更改为“Mixed Platforms”并将“BuildConfiguration”更改为“Release”。但这没有帮助,我遇到了同样的错误,但使用了新值:
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

我也试过禁用和删除这个变量,但仍然有同样的错误。
我怎么修?

最佳答案

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

在 Configuration Manager 对话框中,选择所需的配置和平台值。将挂起的更改 checkin VSO,然后不带任何参数重新运行构建。您现在应该成功运行构建。
enter image description here

关于visual-studio - Visual Studio Online - "The specified solution configuration "Debug|any cpu"is invalid",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32844324/

相关文章:

azure-devops - 无法在 Azure DevOps 的 "Code Coverage"选项卡中呈现代码覆盖率 HTML 结果

azure - 当对 Linux Web 应用程序使用 Azure DevOps CI/CD 时,如何将构建工件压缩并仅作为 zip 文件发布,而不是复制到目录

azure - 如何从 VSTS 连接到 Azure 应用服务

.net - Azure DevOps : Search Commit History of Author on ALL Branches

azure - Azure DevOps 中发布管道工件的文件模式

azure - 使用 azure pipeline 标记 docker 容器

c++ - 如何初始化一个常量 CLSID

visual-studio - Visual Studio 部署到 SQL 数据仓库语法不正确,接近 'ANSI_NULLS'

c# - Visual Studio - 项目显示为 "Miscellaneous Files"

visual-studio - 从扩展程序运行时如何获取解决方案名称?