2 votes
project category missing bug

Description

 
fixed an error. Category missing in the project when serializing. Fix it simple by add the element to the root node:

project.cs:

public XmlElement Serialize () {
Version versionInfo = Util.GetTypeDescriptionProviderVersion ( this.GetType () );

XmlDocument doc = new XmlDocument ();
XmlElement root = doc.CreateElement ( "project" );
root.SetAttribute ( "name", Util.CheckRequired ( this, "name", this.Name ) );

// 1.3 introduced the queue and queue priority
if ( versionInfo.CompareTo ( new Version ( "1.3" ) ) >= 0 ) {
if ( !string.IsNullOrEmpty ( this.Queue ) )
root.SetAttribute ( "queue", this.Queue );
if(this.QueuePriority.HasValue )
root.SetAttribute ( "queuePriority", this.QueuePriority.Value.ToString ( ) );
XmlElement tele = doc.CreateElement ( "category" );
tele.InnerText = this.Category;


root.AppendChild( tele ); // added

File Attachments


No files are attached


Comments

most recent at top (show oldest at top)

Updating...
© 2006-2009 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2009.10.27.15987