命令行构建不会发布站点 [英] Command line build won't publish site

查看:82
本文介绍了命令行构建不会发布站点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试自动化我的构建。除了发布到Azure之外,一切都有效。我在构建机器上安装了VS社区。如果我在IDE中加载项目,我可以发布。但是当我在它上运行MSBuild时,它失败了。我知道这不是参数,
我可以在我的开发机器上做到这一点,我相信我在构建机器上缺少一些子系统。如果我尝试在构建机器上手动执行命令行构建,它会编译项目,但是当它发布时,只需忽略它。

I am trying to automate my build. Everything works other than the publish to Azure. I have install VS community on the build machine. If I load the project in the IDE, I AM able to publish. But when I run MSBuild on it, it fails. I know it isn't the parameters, I can do this fine on my development machine, I believe I am missing some sub system on the build machine. If I try to do the command line build manually on the build machine, it compiles the projects but when it come the publish, just ignores it.

没有错误。

我在构建机器上有发布文件,我可以在IDE中完成所有这些,但只有发布在公共行构建中失败。 

I DO have the publish files on the build machine, again, I can do all this in the IDE but only the publish fails in the common line build. 

谢谢

拉尔夫

推荐答案

嗨Ralph.Krausse,

Hi Ralph.Krausse,

感谢您发布此处。

您的开发机器和构建机器中的Visual Studio版本是什么?是否在命令行中添加了参数/p:VisualStudioVersion=14.0(基于您安装的Visual Studio版本) ?如果没有,请尝试
添加它并检查它是否正常工作。如果这对您没有帮助,您介意分享我们的MSBuild命令行,以便我们可以重现这个问题吗?

What are the version of your Visual Studio in you development machine and build machine? Whether you have add the parameter /p:VisualStudioVersion=14.0 (Based on the version of Visual Studio you installed) in your command line? If not, please try to add it and check if it works fine. If this not help you, would you mind sharing us the MSBuild command line so that we could reproduce this issue?


这篇关于命令行构建不会发布站点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆