开发者

Multiple projects sharing same code without circular reference

I have a C# and F# project. Both are supposed to be a service开发者_C百科 layer code. But sometimes, code from both project need to access code in the other project.

Can each project reference the other without any problems?


You can't have circular assembly references. This will require refactoring the parts used by both assemblies into a third assembly, which can then be referenced from both.


You need to create 3d project where you must add references from both and then you can use methods and objects from C# and F# projects together.

But usually you don't need such cross-reference. That must be an architecture problem.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜