What is a circular dependency and how can I solve it?

后端 未结 3 436
梦谈多话
梦谈多话 2021-01-11 21:52

Scenario


I have a solution on which I have (more than) 2 projects.

The first project has a project reference to the second project. The second projec

3条回答
  •  甜味超标
    2021-01-11 22:31

    instead of using projects as references use the builded DLL of that project for referencing.. if you do the same in every modules of solution u can solve it. if u have two projects named as 'main' and 'sub' then in the main project add DLL of Sub project as refrence file and the same time in Sub project add the DLL of main project as reference..

提交回复
热议问题