C#C
C#3y ago
.tree

❔ Circular dependency between projects

I migrated an old project to .NET 6 from .Net Framework. The application is a REST service running on a windows service.

In the old version, both of those were in a single project. With .NET 6 however I decided to split them into a Web API project for the REST service and a Windows Worker Service project for the Windows service, as that seems to be the best practice.

Now I have the issue of the REST project depending on the Windows Service project and vice versa. How do I deal with this?
Was this page helpful?