【问题标题】:Azure Devops path for Power Platform CDPower Platform CD 的 Azure Devops 路径
【发布时间】:2021-06-18 04:55:30
【问题描述】:

我正在尝试使用“Power Platform Deploy Package”任务为 D365(或 Power Platform)设置发行 CD: https://docs.microsoft.com/en-us/power-platform/alm/devops-build-tool-tasks

我可以看到除了最后一部分之外,构建和发布流程都是正确的。

我可以说它一直有效到“下载工件”部分“ Download Artifact

除了这两个我还需要什么吗?:

pipeline

我收到此“未指定或未找到包文件”错误:

error

环境变量路径的几种组合出现同样的错误。试了准确的路径还是不行

我是不是忘记了什么?

path

代码是使用 VS CRM 包生成的,并且编译得很好。我只将 .net 框架版本更新到 4.7.2。

vs template

【问题讨论】:

  • 您好,刚刚检查一下这个问题现在是否仍然阻碍您?这个问题有更新吗?

标签: azure azure-devops power-platform


【解决方案1】:

如果您使用托管代理而不是自托管代理,我们需要使用predefined variables $(Build.ArtifactStagingDirectory) 而不是D:\a\r1\a 指定路径,那么它应该可以工作。

我们也可以添加任务Copy files过滤.dll文件并将它们复制到另一个路径,然后指定Package File路径。

注意:我只是分享yaml示例,你可以输入变量到类编辑模式(UI)

- task: CopyFiles@2
  displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)'
  inputs:
    Contents: |
      $(Build.ArtifactStagingDirectory)/_Demo-CI/drop/bin/Debug/*.dll
    TargetFolder: '$(Build.ArtifactStagingDirectory)'

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-02-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-27
    • 1970-01-01
    • 2023-03-16
    相关资源
    最近更新 更多