Hi folks. I’ve had some spare time today to get to grips with the Pipeline tool and the mgcb file. I’m fine with what the tool does now and how fonts are loaded (although I hope that’s simplified at some time) and the file sits nicely in my content folder with it’s copy property as Copy always.
However, in the Load event I can’t load anything from the file. Two quick examples, a png file and a font. The Content.mgcb file header shows:
/outputDir:bin /intermediateDir:obj /platform:Windows /config: /profile:Reach /compress:False
and the two major lines of interest under that are:
begin Fonts/Arial-12.spritefont begin Pics/SoftStar.png
I’ve removed the # character as it messes up the forum post.
My load content lines are:
SoftStarTexture = Content.Load(Of Texture2D)("Pics/SoftStar") FontArial = Content.Load(Of SpriteFont)("Fonts/Arial-12")
Both lines give the error - Could not load xxx asset as a non-content file!
The softstar.png file is written to the Bin\Pics folder as I would expect, but there is no Font directory created in Bin.
I’ve tried all the possible variations of syntax on the file names in the load statements and I’m now exhausted.
I’m guessing other people must have got this working with VB, so what on earth am I doing wrong?
Thanks.