zoukankan      html  css  js  c++  java
  • Power Apps Code Component 开发记录

      前言

      最近在做一些Power Apps 代码组件开发,记录下开发的步骤,可能比较简单,但真的一句废话都没有,这里也主要做一个记录,大家有兴趣的可以参考下。

      正文

      创建解决方案

    pac pcf init --namespace <PCFComponentSpace> --name <PCFField> --template field
    pac pcf init --namespace PCFDropdownSpace --name PCFDropdown --template field install

      在Visual Studio Code中打开解决方案

    Code .

      安装fabric ui组件

    npm install office-ui-fabric-react

      编写代码

      ......

      编译解决方案

    npm run build

      预览和调试解决方案

    npm start
    npm start watch

      创建打包目录

    mkdir Solutions
    cd Solutions

      初始化Dataverse 解决方案

    pac solution init --publisher-name pcfcomponent --publisher-prefix pcf

      添加组件到解决方案

    pac solution add-reference --path "D:ProjectPowerAppsDemoApps"

      生成/发布解决方案包

    msbuild /t:build /restore
    msbuild /p:configuration=Release

      连接CDS

    pac auth create --url <your Common Data Service org’s url>

      推送解决方案

    pac pcf push --publisher-prefix <your publisher prefix>

      修改NPM镜像

    npm config set registry https://registry.npm.taobao.org
    npm config get registry
    npm config set registry https://registry.npmjs.org/

      结束语

      整个过程并不复杂,开发起来还是很舒服的,有兴趣的不要害怕复杂,赶紧尝试一下吧。

  • 相关阅读:
    第一次个人编程作业
    软件工程博客作业1
    第一周作业
    预备作业
    没有权限访问路径
    Linux命令:pwd
    Linux命令:readonly
    Linux命令:read
    Bash:精华
    Linux命令:history
  • 原文地址:https://www.cnblogs.com/jianyus/p/14287786.html
Copyright © 2011-2022 走看看