This project is read-only.

Using SerializationManager.SaveProject

Feb 11, 2013 at 2:44 AM
Hi,

I'm using:
dotSpatialAppManager.SerializationManager.SaveProject(saveFileDialog.FileName);
To save a project. It runs without error, and creates a DSPX file, but no matter what layers I've loaded (vector and raster) and what features I've added (I have a layer with lines to show a path and another showing DotSpatial.Symbology.PointShape.Star to show "dangers" on the map) I get a file with the same content; nothing much:
<?xml version="1.0" encoding="utf-16"?>
<root type="0">
  <types>
    <item key="0" value="System.Object[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    <item key="1" value="System.String[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    <item key="2" value="System.Collections.Generic.Dictionary`2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
  </types>
  <item type="1" />
  <item type="2" />
</root>
This is in a C#/.Net 4.5 project. The DotSpatial.Serialization class reports runtime version v4.0.30319 and Version 0.11.9.6

What's SaveProject supposed to do? Any clues as to why it's not doing much for me?

Thanks,