Hi fellow devs,
I have written some projects using the MonoGame NuGets. I added some content like shaders/effect files, 3D models, fonts and created a new NuGet from it.
Now I want to consume that NuGet in another project. Unfortunately the other project throws an exception since it cannot find the
Content directory. That makes sense, since I thought that would be included in the NuGet and looked up there.
My code inside the nuget does the following:
- It tries to get an effect file from the
- It fails because this would be the content directory of the original project from which the nuget was packed.
So whats the correct way to build a NuGet using MonoGame and still deliver some basic assets with it (like a simple 3D doll or some pre-made shader files).
- Project with MonoGame
- Has Content with
- Content files are used by project
- project packed as NuGet
- NuGet used in other project
- Content not available
Hope you can help. Thanks for having a look : )