不参考即可共享课程代码 [英] Share class code without reference

查看:83
本文介绍了不参考即可共享课程代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有9个项目(独立的)和1个普通项目的解决方案.
普通项目包含一些实用程序类(xml,zip,log等).
每个9项目都有一个共同点的引用.问题是我无法更新common.dll,因为他一直在使用中(我不想谈论更新机制).我的9项目是一些Windows服务,这些服务会在应用程序域中加载其他dll,并且它是通过这种方式工作的.
那我找不到什么?我找不到如何在所有项目中共享类代码而不创建对公共项目的引用的解决方案.我想更改一个共同的代码,即它将自动在其他项目中更改.我试图做添加现有项目作为链接,但它不起作用.似乎链接文件添加了类似隐藏引用的内容,因为当我尝试替换common.dll窗口时,我说不能,因为其他进程使用了​​此文件(而且我通过进程资源管理器进行了检查-这是我的项目中只有链接文件)

Hi, i have solutution with 9 projects (independent) and 1 common project.
Common project contains some utility classes (xml, zip, log etc).
Each 9 project has a reference to the common. The problem is that i cant update common.dll because always he is in use (I do not want to talk about update mechanisms). Mine 9 projects is some windows services which load in app domain other dlls and it works this way.
So what i cant find? I cant find solution how to share class code in all projects without create a reference to common project. And i want to change code in common that automatically it will be change in other projects. I tried to do add existing items as a link but it doesnt work. It seems that link files add something like hidden reference because when i tried to replace my common.dll windows says i cant because som other process use this file (and i check by process explorer - it was my project with has only linked file)

推荐答案

您能遵循最简单的逻辑吗?您同时说我无法更新common.dll"和我想共同更改代码".您发布的许多短语都没有意义.关于隐藏参考"的推测不是基于任何理性的.除了您自己的逻辑之外,没有其他错误或隐藏的内容.也许您需要冷静下来,考虑一下自己的情况.无法提供任何建设性的建议,因为您显然并不真正了解自己想要的东西.

—SA
Can you follow the simplest logic? You say "I cannot update common.dll" and "I want to change code in common" at the same time. Many of the phrases in you post make no sense. The speculations about "hidden references" are not based on anything rational. There is nothing wrong or hidden except you own logic. Perhaps you need to cool down and think about your situation. No constructive advice can be given, because you apparently do not really understand what you want.

—SA


这篇关于不参考即可共享课程代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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