.NET中的动态DLL引用 [英] Dynamic DLL referencing in .Net

查看:249
本文介绍了.NET中的动态DLL引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在控制台应用程序中动态引用DLL?

我想在控制台应用程序中动态更改mysql.data [即mysql连接器]参考.由于每次都有许多应用程序,因此无法使用新的.net mysql连接器重建应用程序.

因此,请提出一种消除此问题的方法.

Is there a way to reference DLLs dynamically in console applications?

I want to change my mysql.data [i.e mysql connector] reference dynamically in console applications.As we have many applications eachtime we can not rebuild applications with new .net mysql connector.

So pls suggest a way to get rid of this.

推荐答案

Reflection应该可以实现这一目标.
此处 [
Reflection should allow you to achieve this.
A very nice and easy guide here[^].


这可能会有所帮助,

依赖注入 [依赖注入框架-第1部分-简介 [ Dependency-injection-choose-dll-and- class-implementation-at-runtime-through-con [
It might be helpful,

Dependency Injection[^]
Dependency Injection Frameworks - Part 1 - Introduction[^]
Dependency-injection-choose-dll-and-class-implementation-at-runtime-through-con[^]

:)


这篇关于.NET中的动态DLL引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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