Circular References in my C# projects

前端 未结 4 1803
半阙折子戏
半阙折子戏 2021-02-13 11:56

I have the following situation:

  1. A project MyCompany.MyProject.Domain which contains my domain model, and partial classes (such as Contact

4条回答
  •  滥情空心
    2021-02-13 12:40

    If you cannot share the domain (probably right) and it must consume the logic from a shared library then then you really have to introduce a another assembly.

    Or you could load the logic at runtime in the domain by reflection in the domain to access the dependent library. Its not hard just breaks compile time checking.

提交回复
热议问题