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
No description
8 Replies
peladodocinero
peladodocineroOP11mo ago
No description
No description
No description
peladodocinero
peladodocineroOP11mo ago
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.
Petris
Petris11mo ago
I mean, isn't the issue literally that Application references Infrastructure and Infrastructure references Application?
peladodocinero
peladodocineroOP11mo ago
Yeah, but what is the wrong with that?
Thinker
Thinker11mo ago
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.
peladodocinero
peladodocineroOP11mo ago
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?
phaseshift
phaseshift11mo ago
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
peladodocinero
peladodocineroOP11mo ago
Okay, thanks :D!
Want results from more Discord servers?
Add your server