Hi,
I trying to port an old game made with an older version of MonoGame. I converted my project by adding a Content.mgcb in the content folder, replaced DLL, added the build target definition in my solution. All is fine, I can build the project by I can’t build all my assets.
I have some XML files for storing translations and levels. This is these files that can’t be converted by pipeline.exe. I have 11 errors like that
D:/Documents/Sources/thelostmaze/Maze3D/Content/Data/Levels/level_1.xml
D:/Documents/Sources/thelostmaze/Maze3D/Content/Data/Levels/level_1.xml: error: Importer 'XmlImporter' had unexpected failure!
Microsoft.Xna.Framework.Content.Pipeline.InvalidContentException: Could not resolve type 'Data:Level'.
… Microsoft.Xna.Framework.Content.Pipeline.Serialization.Intermediate.IntermediateReader.ReadObject[T](ContentSerializerAttribute format, ContentTypeSerializer typeSerializer, T existingInstance)
… Microsoft.Xna.Framework.Content.Pipeline.Serialization.Intermediate.IntermediateReader.ReadObject[T](ContentSerializerAttribute format)
… Microsoft.Xna.Framework.Content.Pipeline.Serialization.Intermediate.IntermediateSerializer.Deserialize[T](XmlReader input, String referenceRelocationPath)
… Microsoft.Xna.Framework.Content.Pipeline.XmlImporter.Import(String filename, ContentImporterContext context)
… Microsoft.Xna.Framework.Content.Pipeline.ContentImporter`1.Microsoft.Xna.Framework.Content.Pipeline.IContentImporter.Import(String filename, ContentImporterContext context)
This is sample of a XML file
<?xml version="1.0" encoding="utf-8"?>
<XnaContent xmlns:Data="Maze3D.Data">
<Asset Type="Data:Level">
<Id>1</Id>
<BlockSizes>
<Width>10</Width>
<Height>10</Height>
<Depth>10</Depth>
</BlockSizes>
<WallTexture>Textures/stone_diff</WallTexture>
<GroundTexture>Textures/tarmac06</GroundTexture>
<TopTexture>Textures/slab03</TopTexture>
<FinishTexture>Textures/tarmac02</FinishTexture>
<BorderWallTexture>Textures/stone_diff</BorderWallTexture>
<Width>16</Width>
<Height>0</Height>
<Depth>16</Depth>
<Tiles>2 2 2 2 (All tiles data)</Tiles>
<SkyboxType>Night</SkyboxType>
<AchievementID>-1</AchievementID>
</Asset>
</XnaContent>
The XNA version doesn’t require a custom importer or anything else, all data has been compiled by IntermediateSerializer. In a previous MonoGame release (3.0 maybe) It works because the XNB are already built.
How can I solve this?
Thanks.