error MSB4006: A circular dependency exists in the target dependency graph in which the destination
Hi how are things. The error is in Spanish, but the error is the same. Below I leave the structure of my project and some files that seem important to me (which is why I could generate that error), thank you very much.
![No description](https://cdn.answeroverflow.com/1192094446922248202/image.png)
![No description](https://cdn.answeroverflow.com/1192094447668834365/image.png)
8 Replies
![No description](https://cdn.answeroverflow.com/1192094686240837682/image.png)
![No description](https://cdn.answeroverflow.com/1192094686488305674/image.png)
![No description](https://cdn.answeroverflow.com/1192094686744162314/image.png)
Any error or recommendation are welcome. Thanks
https://github.com/Ivowainer/NomNomNush_Hub
GitHub
GitHub - Ivowainer/NomNomNush_Hub
Contribute to Ivowainer/NomNomNush_Hub development by creating an account on GitHub.
I mean, isn't the issue literally that Application references Infrastructure and Infrastructure references Application?
Yeah, but what is the wrong with that?
It's a cyclic reference, which isn't allowed. MSBuild can't figure out which project to build first, because both depend on each other.
LOL, I didn't know. And what do I have to do if I want to "get" methods from a class that is in another project?
Reference the project. But if you hit circular reference, then make a new project
Although if you're doing some 'clean architecture' thing and hitting reference problems then you're probably doing something wrong
Okay, thanks :D!