Power Apps Code Component 开发记录
2023-09-27 14:21:57 时间
前言
最近在做一些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/
结束语
整个过程并不复杂,开发起来还是很舒服的,有兴趣的不要害怕复杂,赶紧尝试一下吧。
相关文章
- Visual Studio Code的C语言头文件包含问题:include errors detected. ..Squiggles are disabled for this translatio
- Multi-Projector Based Display Code ---- Download
- Multi-Projector Based Display Code ---- FAQ
- 安装vue脚手架出现错误:npm ERR code ETIMEDOUT npm ERR syscall connect npm ERR errno ETIMEDOUT npm ERR network reques...
- 如何在Linux上使用Visual Studio Code
- Manual write code to record error log in .net by Global.asax
- [Code] 狗哥之多核并发
- Visual Studio Code 快捷键的设置
- Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column.
- 使用 Visual Studio Code(VSCode)搭建简单的Python+Django开发环境的方法步骤
- Facebook 默认开发环境采用 VS Code
- VS Code 扩展程序
- 基于Visual Studio Code搭建Vue开发环境
- Visual Studio Code插件-前端工程师开发必备
- 10 Tips for Writing Better Code (阅读理解)
- EF Core学习Code First
- 使用VS Code开发调试.NET Core 多项目
- 使用VS Code 开发.NET Core 应用程序 部署到Linux 跨平台