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

标签 c# visual-studio visual-studio-2015 msbuild azure-devops

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

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

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

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

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

在谷歌上搜索了几个小时后,我找不到让构建任务克服错误的方法。

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

是否可以通过配置转换获取文件系统发布配置文件,以便从团队服务指导的本地构建代理工作?还是我需要以其他方式解决这个问题?

建议的副本不会遇到相同的问题或错误消息。在那个问题中,发布配置文件有效,只是不提供操作期望的文件,这个问题是关于此处报告的错误。

最佳答案

在我的例子中,publishUrl 配置不正确。

关于c# - msbuild 命令行尚不支持 WebPublishMethod(FileSystem),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38486929/

相关文章:

c# - 500 自定义错误从不显示但在预览中

c# - 为什么 GridView 没有显示在浏览器上?

c - 如何在没有 Visual Studio 的情况下下载和安装 Microsoft 的 Visual Studio C/C++ 编译器

c++ - 在 Visual Studio 2012 中为我的 C++ 项目设置 Aquila

visual-studio - 缓慢的应用程序构建 - Xamarin for Visual Studio

c# - 数据绑定(bind)到 WPF 中的 UserControl

c# - 如果目标类型未实现特定接口(interface),则让 Autofac 抛出

.net - 如何诊断 Resharper 单元测试运行器 "Unable to load one or more of the requested types"错误

visual-studio - Unity 2017 在 Debug Step Over 期间崩溃

c++ - Visual Studio Profiler 不显示源代码位置