Cannot add reference to project because of a circular dependency error

前端 未结 9 1077
不思量自难忘°
不思量自难忘° 2020-12-15 15:07

I created 2 dummy projects in my application and named them BAL and DAL. When I build them, they build successfully. If I add a reference to

9条回答
  •  遥遥无期
    2020-12-15 16:08

    This just happened to me. You have a circular dependency, i.e. two projects both referencing each other. You need to make one of them independent of the other. Takes some time and it happens so quick. One second I was happily coding along, and the next I had 45 errors like this. Just took some time but it makes your architecture/program structure better too, helping you sort out dependencies properly.

提交回复
热议问题