摘要: http://www.cnblogs.com/wheretime/p/3809404.htmlusing System;using System.IO;using System.Web;using System.Reflection;using System.Web.Compilation;usin... 阅读全文
posted @ 2015-03-17 11:53 awp110 阅读(213) 评论(0) 推荐(0) 编辑
摘要: http://share.weiyun.com/cde4bb685958884527e579c6f8a7a70f[assembly: PreApplicationStartMethod(typeof(PluginManager), "Initialize")]1、取得控制台应用程序的根目录方法 方法... 阅读全文
posted @ 2015-03-17 10:53 awp110 阅读(205) 评论(0) 推荐(0) 编辑
摘要: Assembly和AppDomain的一些关于动态加载程序集的函数有些令人头疼,但细细研究后还是可以将他们区分的。 这些函数大致可以分为四类:第一类:加载到Load Context内Load Context:Load Context是所有动态加载程序集首选应该被加载到的地方。它只能加载在AppDom... 阅读全文
posted @ 2015-03-17 10:14 awp110 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 概述nopCommerce的插件机制的核心是使用BuildManager.AddReferencedAssembly将使用Assembly.Load加载的插件程序集添加到应用程序域的引用中。具 体实现可以参考nopCommerce解决方案中Nop.Core项目的Plugins目录下的相关文件。其中P... 阅读全文
posted @ 2015-03-17 08:48 awp110 阅读(416) 评论(0) 推荐(1) 编辑