VSPackage保理思想 [英] VSPackage factoring thoughts

查看:188
本文介绍了VSPackage保理思想的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直了解,将产品功能纳入VSPackages时应考虑的主要因素之一是内存占用量.例如,如果用户有能力使用您产品的一部分,而没有其他所有部分, 那么最好将这些编辑器,项目等包装在不同的包装中.我倾向于针对不同的项目类型使用单独的VSPackges,但是其中许多项目类型共享许多通用代码(对共享程序集的引用),因此 加载一种项目类型与加载所有项目类型之间的内存差异小于人们可能会想到的.

I've always understood that one of the main factors one should consider when factoring product functionality into VSPackages is the memory footprint.  For instance, if a user had the ability to use one portion of your product without all of the others, then it may be a good idea to ship those editor, projects, etc in different packages.  I've tended to have separate VSPackges for different project types, but many of these project types share lots of common code (references to shared assemblies), so the memory difference between having one project type loaded versus all project types loaded is less than one might think.

此外,我发现将东西切成多个包装肯定会产生一定的开发和维护成本.举例来说,我的专案类型有数十种命令,其中许多实际上在专案类型之间是相同的, 但必须在每个VSPackage中分别定义和维护.当然,跨包通信需要实现和注册服务的复杂性.

Also, I've found that there is certainly a development and maintenance cost associated with carving things up into multiple packages.  For instance, my project types have dozens of commands, many of which are actually the same between project types, but which must be defined and maintained separately in each VSPackage.  Cross-package communication requires, of course, the complexity of implementing and registering services.

因此,对于一个新项目,我正在考虑是否最好将多个项目类型合并到一个软件包中,并且通常尝试使用"fatter"项目.软件包-特别是在有很多共享代码的情况下.

So, for a new project, I'm considering if I would be better off consolidating multiple project types into a single package and generally trying to go with "fatter" packages -- particularly when there is lots of shared code.

我会对其他想法以及MS规定性指南对瘦"的人感兴趣.包与散布"多项目类型的包.

I'd be interested in others thoughts and what the MS prescriptive guidance might be on "skinny" packages versus "fatter", multi-project type packages.

预先感谢.

推荐答案

我正在尝试让熟悉此主题的人进一步研究此问题.可能会有一些时间延迟.感谢您的耐心.
 
感谢您的理解和支持.

I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
 
Thank you for your understanding and support.

最好的问候


这篇关于VSPackage保理思想的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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