English 中文(简体)
装载
原标题:Catch dll loading

我正试图建造一座大楼。 NET客户软件包按需求下载其部件。

请允许我说,我有一个方案,将它分为一个可执行的主要档案和20个其他文件。 其中主要方案参考3,指其他部分,任何方面......它们有某种树木,如依赖性结构。

我试图实现的是,只分发可执行的主要物品,从一个服务器站接手。

Something like this: The main program and all these dll projects are in a single solution and are built together just like any other solution. While distributing, only the exe is distributed, the other dll s (including some third party libraries used) are put in a server location available for download.

外部操作显示,在用户点击一个菜单项目时,从一个单壳文档中显示另一个“国际调查”窗口,以便本组织能够看起批号(没有),我干预,从服务器下载所需批号,将其排在外,使本组织能够像从一开始就那样装载。

这一点通过使用一个共同的接口和一些反思的魔法来实现,但我希望再做一些事情,其中包括在单一解决办法中完全建造ll,其中包括对3个政党图书馆进行点击下载。

任何关于如何这样做的想法?

最佳回答

You re looking for the AppDomain.AssemblyResolve event, which allows you to load assemblies from custom locations.
You won t need any other reflection.

问题回答

提供AppDomain活动操作员。 页: 1 决心为您目前的传闻举办活动,并装上议会。

但应谨慎地将集会装入正确的范畴:





相关问题
Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How do I compare two decimals to 10 decimal places?

I m using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal. 0....

Exception practices when creating a SynchronizationContext?

I m creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I m wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used ...

Show running instance in single instance application

I am building an application with C#. I managed to turn this into a single instance application by checking if the same process is already running. Process[] pname = Process.GetProcessesByName("...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签