RonenNess / GeonBit.UI

UI system for MonoGame projects.
MIT License
467 stars 63 forks source link

Could not resolve data type. #134

Closed softwareantics closed 10 months ago

softwareantics commented 1 year ago

I added the reference in the content manager, added a link to the themes folder but I'm getting build errors:

image

image

image

image

Salviniah commented 1 year ago

same here trying to solve for 4 hours and now I am about to lose my mind.

DavidFidge commented 1 year ago

I suspect it is due to a bug in MonoGame, specifically issue #6509 where you can't add fully-pathed external references to a .dll in the content.mgcb file. Your reference MUST be a path relative to the Content directory. For my project I have just put the DataTypes.dll file into the Content directory and add it as a reference in the content.mgcb file as follows:

/reference:GeonBit.UI.DataTypes.dll

If you're still having issues and are able to share your project I'd be happy to look at it.

RonenNess commented 10 months ago

I removed the dependency of GeonBit.UI.DataTypes.dll completely and switched to regular XMLs. Hope this resolve all these issues (XNA XML assets are pure nightmare to work with..)

Thanks!