【问题标题】:Azure Devops Build Pipeline - files are not publishedAzure Devops 构建管道 - 未发布文件
【发布时间】:2020-07-24 00:02:43
【问题描述】:

我正在尝试使用 VS 发布配置文件发布我的应用程序。当我通过 Visual Studio 发布时,它成功运行,但通过 DevOps 发布不起作用。两者的构建都是成功的。这是我的 VSBuild 任务定义:

      inputs:
        solution: '$(solution)'
        msbuildArgs: '/t:Restore /p:DeployOnBuild=true /p:DeployDefaultTarget=WebPublish /p:WebPublishMethod=FileSystem /p:PublishBaseUrl=$(build.artifactstagingdirectory)'
        platform: '$(buildPlatform)'
        configuration: '$(buildConfiguration)'

【问题讨论】:

  • 你查看我的回复了吗?你的问题怎么样了?

标签: azure-devops azure-pipelines publish-profiles


【解决方案1】:

尝试使用/p:publishUrl 而不是/p:PublishBaseUrl。如果仍然无法正常工作,请分享您的 pubxml 文件和 DevOps 构建日志。

【讨论】:

    【解决方案2】:

    您正在使用发布配置文件,因此您可以像这样指定 MSBuild 参数:/p:DeployOnBuild=true /p:PublishProfile=myprofile

    相关话题:Using msbuild to execute a File System Publish Profile

    【讨论】:

      猜你喜欢
      • 2020-12-23
      • 2020-11-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-01-21
      • 2020-03-31
      • 1970-01-01
      • 2021-01-17
      相关资源
      最近更新 更多