XNA Creators Club Online
Page 1 of 1 (3 items)
Sort Posts: Previous Next

Dynamic building of XML files?

Last post 30/05/2009 2:30 by LotusXP. 2 replies.
  • 30/05/2009 0:59

    Dynamic building of XML files?

    I’ve been messing around with the WinForms example of dynamic loading and I’ve ran into a problem. I can’t seem to be able to dynamically build and load xml content files. Here is my scenario. I have a simple level editor. The level editor allows the user to specify the backbuffer size and anti aliasing amount. This data is stored into a structure and serialized using the immediate serializer. What I am having trouble with this building this xml file into an xnb format. The goal is to automatically load this with the game (so the resolution is set etc.), without forcing the user to add the .xml to the game. Is there anything specifically I should do to get XML building working?

    Games Developed: QuadTrix
  • 30/05/2009 1:31 In reply to

    Re: Dynamic building of XML files?

    More details please. Such as, what exactly goes wrong when you try this?
    XNA Framework Developer - blog - homepage
  • 30/05/2009 2:30 In reply to

    Re: Dynamic building of XML files?

    I’m getting this error:

    The "Message" task could not be instantiated from the assembly "Microsoft.Build.Tasks, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Please verify the task assembly has been built using the same version of the Microsoft.Build.Framework assembly as the one installed on your computer and that your host application is not missing a binding redirect for Microsoft.Build.Framework. Unable to cast object of type 'Microsoft.Build.Tasks.Message' to type 'Microsoft.Build.Framework.ITask'.

    The "Message" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name.

     

    I have both the Microsoft.Build.Engine and Microsoft.Build.Framework assemblies referenced in my project, so I don’t really know what could be going wrong.

    Games Developed: QuadTrix
Page 1 of 1 (3 items) Previous Next