我有
类库.net项目(没有配置,没有exe文件)
我有这样的东西;
using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Reflection;
using System.Web.UI.WebControls;
using eBAControls; *<-- I want this dll to be loaded from a path in runtime.*
我必须
copyLocal
false
因此,出于将来的原因,我需要能够在运行时引用dll。与此当前dll位于同一文件夹中的其他第三方dll
不会引起任何问题
但是
eBAControls
dll与当前dll不在同一文件夹中,因此它会给出错误:
Could not load file or assembly 'eBAControls
...
由于某些编码和性能原因,我也不能使用反射,因此需要将其添加到引用中。。。
很快我想要的是
using eBAControls = @"somepath"; <- that is set dynamically for ex while one of my methods are being executed etc...