Circular Dependency Solution

前端 未结 3 1339
遥遥无期
遥遥无期 2020-12-31 08:28

Our current project has ran into a circular dependency issue. Our business logic assembly is using classes and static methods from our SharedLibrary assembly. The SharedLibr

3条回答
  •  离开以前
    2020-12-31 09:12

    Anytime you have a "shared" library you absolutely must not ever reference your business entity project. Doing so will cause this issue to happen as you obviously see.

    The solution to this is remove all of the business entity dependent code from the shared library and either rearchitect away the need for that helper code or place that helper code inside the business entity project itself.

提交回复
热议问题