I hope this post is okay. I have done a search and not managed to find anything so please, close or ignore this if I’m just being a dumbass.
I’ve successfully loaded images and shaders using the Content Manager using MonoGame 3.6. I have tried with an audio file and its causing an exception.
In a nutshell, the load function for “Song” is looking in the root of my drive for the sound file, instead of root of the “Content” directory. I’ve attached an image :
No idea what’s going on here, but that’s definitely a bug. I don’t think this code was touched in develop since the 3.6 release, so it probably won’t be any better with the develop branch.
This is the constructor of the class that inherits from the “Game” class. That is the default value given when making the project from the cross-platform template.
In the first image it shows that same value on line 74 and in the autos window at the bottom. The shader and image files are found no problems, also it doesn’t look in "S:" for them.
It worked no problems. No exception, didn’t change any code. Is that still a bug? Surely the drive shouldn’t matter if the path is correctly retrieved?
It probably does, its just that when you suggested that, I simply dumped the project folder on C:\ meaning the path was “C:\Project” not “C:\c# projects\Project”.
I can verify this when I get back home.
Edit: Checked and I get the same issue. It is an issue to do with the ‘#’ character in the path when loading Song files.