简体   繁体   English

如何在 azure devops 中运行 Visual Studio 构建

[英]How to run visual studio build in azure devops

在此处输入图像描述 I want to build my solution file in azure devops.我想在 azure devops 中构建我的解决方案文件。 I have added this to build pipeline, I see this step doesn't succeed.我已将其添加到构建管道中,我看到此步骤不成功。 It tells " MSBUILD: error MSB1008: Only one project can be specified."它告诉“MSBUILD:错误 MSB1008:只能指定一个项目。” I suspect I am making some mistake in specifyning msbuild args我怀疑我在指定msbuild 参数时犯了一些错误

msbuild $(Build.SourcesDirectory)\ansysfnonet\ansysfnonet.vs2017.sln /t:$(Build.SourcesDirectory)\ansysfnonet\ansysfnonet.csproj:Rebuild;

I tried specify only proj file as msbuild arg it didn't work for me

I tried without specifying msbuild it throws me whole lot of errors.我尝试不指定 msbuild 它给我带来了很多错误。

Someone please help me, why I am failing in this step and how to solve this error.有人请帮助我,为什么我在这一步失败以及如何解决这个错误。

Thanks谢谢在此处输入图像描述

You don't need to specify an msbuild command line in the MSBuild Arguments field.您无需在MSBuild Arguments字段中指定msbuild命令行。 You need to specify any additional MSBuild parameters beyond the defaults.您需要指定除默认值之外的任何其他MSBuild 参数。

Clear that field.清除该字段。 That should fix the problem you're encountering.那应该可以解决您遇到的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 是否可以通过 azure devops 获取 Visual Studio 构建文件夹名称? - Is it possible to get the visual studio build folder name over azure devops? 使用 Visual Studio 构建任务在 azure devops 中设置工作目录 - Set working directory in azure devops with Visual Studio build task Azure DevOps 2019 查看 Visual Studio 中的构建过程 - Azure DevOps 2019 view build process inside Visual Studio 如何通过 Visual Studio 2008 在 azure DevOps 中构建 C# 代码? - How to build C# Code in azure DevOps via visual studio 2008? 如何在 Azure Devops Pipeline 托管代理中构建 Visual Studio 安装程序项目 - How to build Visual Studio Installer Project in Azure Devops Pipeline Hosted Agent 如何恢复 azure devops/visual studio/git 中的合并分支 - How to revert a merged branch in azure devops/visual studio/git 如何从Visual Studio上传解决方案到vsts / Azure Devops - how to upload a solution to vsts/ azure devops from visual studio 从内部版本在Microsoft Azure中运行Visual Studio负载测试 - Run Visual Studio Load Tests in Microsoft Azure from build 如何在Visual Studio中运行Azure Powershell Cmdlet - How to run Azure Powershell Cmdlets in Visual Studio Visual Studio 2019 删除了 azure devops 连接 - visual studio 2019 remove an azure devops connection
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM