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.
8 Replies
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!