Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

By default, CodeSmith Generator will try to serialize your custom metadata types automatically using the JSON.NET library.  So for most situations, you won't need to do anything special to add CodeSmith Project property serialization support.

If your custom metadata type does not work by default or requires special formatting to save to XML (for instance, it includes information that you want to format in a particular way in the XML file), you'll need to add a property set supportserializer. Otherwise, there won't be any way for the user to save an XML property set file that includes an instance of your metadata type. To add property set support, you'll need to build a serializer for your type. A serializer is simply a class that implements the CodeSmith.IPropertySerializer interface.

...