[英]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.有人请帮助我,为什么我在这一步失败以及如何解决这个错误。
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.