DLL - 在库类中使用主项目类
我从未尝试过将我的项目分成 DLL,但我目前正在做的事情需要更模块化的方法。我想要做的是轻松地切换多个类的版本,以将更新推送给用户,而无需他们重新安装我的整个应用程序。
这些类创建在应用程序中定义的其他类的实例,并且不应该成为切换进和切换出的模块的一部分 - 它们是核心的。显然,在类库项目中,这些类是未定义的,因为它们仅在主应用程序中定义。如何让类库能够使用这些主要应用程序类?
非常感谢所有帮助。
I've never tried separating down my projects into DLLs but something I'm working on at the moment calls for a more modular approach. What I want to be able to do is switch out versions of a number of my classes easily to push updates to users without them having to re install my entire application.
These classes create instances of other classes which are defined within the application and shouldn't be part of the modules which are switched in and out - they're central. Obviously in the class Library project these classes are undefined as they are only defined in the main application. How do I go about enabling the class library to use these main application classes?
All help is much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论