交叉引用程序集 [英] Cross referencing assemblies
问题描述
.net解决方案中有三个项目.
主要项目和两个类库项目.
I have three projects in my .net solution.
The main project and two class library projects.
我发现我需要交叉引用类库项目.
我可以这样做吗?是安全还是有一些注意事项?
I have found out that I need to cross reference the class library projects.
Can I do that? Is it safe or there are some considerations?
推荐答案
当项目位于一个解决方案中时,IDE将不允许您使用.有一些微妙的方法来混淆它.但是由于该程序集引用尚不可用,因此无法从头开始构建解决方案(即Build + Rebuild).对此进行重构,您可能希望第三个程序集都可以引用.
The IDE won't let you when the projects are in one solution. There are subtle ways to confuzzle it. But then the solution cannot be built from scratch (i.e. Build + Rebuild) since the assembly reference isn't available yet. Refactor this, you probably want a 3rd assembly that both can reference.
这篇关于交叉引用程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!