[UWP]加载模块 [英] [UWP] Load Modules

查看:82
本文介绍了[UWP]加载模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 


我读到我无法使用UWP和MEF在我的UWP APP中加载模块。


<如果我想跟随的话,你会有什么想法: 


我有一个UWP应用程序,我称之为"Skeleton"。这个Skeleton有一些基本的功能,比如登录管理,Possibilty连接数据库/服务,App有一些主题/颜色管理,导航功能......当
i去寻找新的App Idea时我用这个Skeleton ,我会复制它,并实现我的自定义功能。说我有3个应用程序,几个月后我去修改骨架中的一些代码,然后我必须调整我的三个应用程序。 


这就是我说的地方,开发骨架,并为每个应用程序在模块实现它...未来的想法是每个模块可以有按需加载的插件/扩展。 


我的想法现在是做一个根据我在骨架应用程序中的命名空间,UWP库充当UI和自定义逻辑的模块,并使用它。这是正确的方式吗?其他想法? 



谢谢 


彼得

解决方案

您好elTorito,


您还可以尝试创建项目模板作为骨架应用。在
项目菜单上,点击导出模板开始创建。将项目导出到.zip文件后,可以找到新的项目模板。请参阅

如何:创建项目模板
了解更多详情。


祝你好运,


Breeze


Hi, 

i read that i can't work with UWP and MEF for Loading Modules in my UWP APP.

What Ideas have you if i desire follow thing: 

I have an UWP App, i call it "Skeleton" this Skeleton has some Basic Functionality such as Login Management, Possibilty to Connect DataBase/Services, the App has some Theme/Color Management, Navigation Funtioanlity ... ... I use this Skeleton when i go for a new App Idea, i would copy it, and implement my custom functionality. Saying i have 3 apps, and after months i go for change some code in the skeleton, then i must adapt my three apps. 

This was the point where i'm say, develop the skeleton, and for each app implement it at module... future idea was that each module can have Plugins/extensions for load on demand. 

My Idea now is make a UWP Library acts as Module with the UI and custom logic, according my namespace in the skeleton app, and use it. It's that the Right way? Other ideas? 

Thanks 

Peter

解决方案

Hi elTorito,

You can also try to create a Project Template as your skeleton app. On the Project menu, click Export Template to begin your creation. You can find the new project template after you have exported your project into a .zip file. Please refer to How to: Create Project Templates for more details.

Best regards,

Breeze


这篇关于[UWP]加载模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆