msbuild命令行尚不支持WebPublishMethod(FileSystem) [英] WebPublishMethod(FileSystem) is not yet supported on msbuild command line

查看:178
本文介绍了msbuild命令行尚不支持WebPublishMethod(FileSystem)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Visual Studio Team Services(在visualstudio.com上)与运行VS2015的本地构建代理一起使用.在我们的解决方案中,有3个网站将文件系统发布配置文件发布到开发,测试,演示环境,并应用了配置转换.

Am using Visual Studio Team Services (on visualstudio.com) with an on-premise build agent running VS2015. In our solution there are 3 websites with filesystem publish profiles to Dev, Test, Demo environments with config transforms applied.

从VS2015 IDE本地运行时,这些工作正常.当尝试从Team Services在线的构建定义中的" Visual Studio构建"任务中发布相同的配置文件时,遇到以下错误:

These work fine when run from within VS2015 IDE locally. When attempting to publish the same profiles from a "Visual Studio Build" task in a build definition in Team Services online the following error is encountered:

此特定WebPublishMethod(FileSystem)尚不支持 msbuild命令行.请使用Visual Studio进行发布.

This specific WebPublishMethod(FileSystem) is not yet supported on msbuild command line. Please use Visual Studio to publish.

已为任务的MSBuild参数设置了以下内容.

Have set the following for the MSBuild Arguments on the task.

/p:DeployOnBuild = true/p:OutDir=$(build.artifactstaging目录) /p:PublishProfile = TestProfile

/p:DeployOnBuild=true /p:OutDir=$(build.artifactstagingdirectory) /p:PublishProfile=TestProfile

花了几个小时的搜索时间,我找不到找到解决错误的方法.

Having spent a few hour googling I cannot find a way to get the build task to get past the error.

我们试图做的是将网站部署到文件位置,并为适当的环境应用配置转换.不能使用Webdeploy或FTP,只能使用文件系统部署.

What we are trying to do is have the websites deploy to a file location with config transforms applied for the appropriate environment. Cannot use Webdeploy or FTP, only filesystem deployment.

是否有可能通过config转换使文件系统发布配置文件从由Team Services指导的本地构建代理工作?还是我需要以其他方式解决这个问题?

Is it possible to get filesystem publish profiles with config transforms to work from a on-premise build agent being directed from Team Services? Or do I need to tackle this in another way?

建议的重复项没有遇到相同的问题或错误消息.在该问题中,发布配置文件有效,只是不提供op期望的文件,此问题与此处报告的错误有关.

The suggested duplicate doesn't encounter the same issue or error message. In that question the publish profile works, just doesn't provide the files the op is expecting, this question is about the error as reported here.

推荐答案

在我的情况下,publishUrl配置不正确.

In my case publishUrl was not configured properly.

这篇关于msbuild命令行尚不支持WebPublishMethod(FileSystem)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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