Hi and thanks for replying.
I’m trying to figure out how to have an Android project use the .mgcb files from a Shared project using Visual Studio 2019 and MonoGame 3.8.
Therefore the Android project does not have it’s own Content folder or .mgcb file.
The problem is that as soon as I delete the Content.mgcb file from the Android project, the build for that project fails with the message:
Unhandled exception. System.Exception: File 'C:\PATH_TO_PROJECT\Content\Content.mgcb' does not exist.
This exception seems to be caused by the (new to 3.8?) MonoGame.Content.Builder.Task nuget package, it seems to assume there will be a file at that location when there isn’t and crashes if it isn’t there.
So if I try to remove the MonoGame.Content.Builder.Task nuget package from the Android project, the project can then build. The trouble then is that the .mgcb files from any shared projects are not copied over, causing a crash at runtime.
This is all entirely different to how it was in the previous 3.7 release of MonoGame, using Visual Studio 2017. I would simply create the Android project and delete the Content folder, then reference any shared projects I wanted and automatically any .mgcb files from any shared projects would be copied to the output and available to the Android project.
I hope that’s a clearer way of putting it?
Do you know how I can fix it? There is some manual hacking of the csproj file I have to do now?