public override DataItem WriteSlnData ()
		{
			DataSerializer ser = new DataSerializer (MSBuildProjectService.DataContext);
			ser.SerializationContext.BaseFile = EntityItem.FileName;
			ser.SerializationContext.DirectorySeparatorChar = '\\';
			DataItem data = (DataItem) ser.Serialize (EntityItem, typeof(CompiledAssemblyProject));
			return data;
		}
Ejemplo n.º 2
0
        public void Serialize(XmlWriter writer, object obj, Type type)
        {
            DataNode data             = serializer.Serialize(obj, type);
            XmlConfigurationWriter cw = new XmlConfigurationWriter();

            cw.StoreAllInElements = StoreAllInElements;
            cw.Write(writer, data);
        }
Ejemplo n.º 3
0
		void UpdateEntry ()
		{
			var ser = new DataSerializer (new DataContext ());
			var data = ser.Serialize (this);

			XmlDocument doc = new XmlDocument ();
			var writer = new XmlConfigurationWriter { Namespace = MSBuildProject.Schema };
			var elem = writer.Write (doc, data);

			entry.MSBuildProject.SetMonoDevelopProjectExtension ("Deployment.LinuxDeployData", elem);
		}
Ejemplo n.º 4
0
        public void Serialize(BinaryWriter writer, object obj, Type type)
        {
            DataNode data = serializer.Serialize(obj, type);

            BinaryConfigurationWriter.DefaultWriter.Write(writer, data);
        }
		public static void WriteObjectProperties (this SlnSection pset, object ob)
		{
			DataSerializer ser = new DataSerializer (solutionDataContext);
			ser.SerializationContext.BaseFile = pset.ParentFile.FileName;
			ser.SerializationContext.IncludeDeletedValues = true;
			var data = ser.Serialize (ob, ob.GetType()) as DataItem;
			if (data != null)
				WriteDataItem (pset, data);
		}