4
Power Apps Code Component 开发记录
source link: https://www.cnblogs.com/jianyus/p/14287786.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
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:\Project\PowerApps\DemoApps"
生成/发布解决方案包
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/
结束语
整个过程并不复杂,开发起来还是很舒服的,有兴趣的不要害怕复杂,赶紧尝试一下吧。
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK