msbuild命令行尚不支持WebPublishMethod(FileSystem)

编程入门 行业动态 更新时间:2024-10-25 02:29:06
本文介绍了msbuild命令行尚不支持WebPublishMethod(FileSystem)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

Am using Visual Studio Team Services (on visualstudio) 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)

本文发布于:2023-11-15 04:39:39,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1591222.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:命令行   尚不   msbuild   WebPublishMethod   FileSystem

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!