Why are circular references in Visual Studio a bad practice?

后端 未结 8 2038
囚心锁ツ
囚心锁ツ 2020-12-05 23:33

Why are circular references in Visual Studio a bad practice?

First, I will describe an example of how this can happen using C# in Visual Studio, since VS will typi

8条回答
  •  再見小時候
    2020-12-05 23:40

    Aside from build issues, circular references always indicate a design flaw. In .NET, a circular relationship makes two assemblies effectively one assembly. If neither one can live on its own without the other, building them separately is just an exercise - it doesn't change the fact that together they represent a monolithic assembly.

    I've noticed this a lot with utility assemblies. Must be an anti-pattern.

提交回复
热议问题