开发者

Is it possible to have REF to a Silverlight class library (dll) module in ModuleCatalog.xaml

I am working with Silverligh开发者_开发问答t 4.0 and Windows Application Composite Framework (Prism). I have created couple of modules which are Silverlight libraries so they are compiled into dlls and not xaps.

I want to register these modules into my Shell application using ModuleCatalog.xaml. If I package my modules into .xap then this approach works fine but since my modules are .dll, I am getting exception during load.

So my question is, will be possible to register silverlight module dll in ModuleCatalog.xaml?


This is not possible because Silverlight packages assemblies in .xap packages. Thus, if an assembly is not in the main .xap (the one of the Shell), Prism must know how to download the .xap file where it's located at to be able to download and load modules correctly.

Imagine that, if the application downloaded the module's from a server, downloading the .xap package and loading an assembly in the application is possible and easy in Silverlight, while doing it directly with a .dll is not.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜