Ejemplo n.º 1
0
 SerializePaths(
     System.Xml.XmlDocument document,
     System.Xml.XmlElement parentEl)
 {
     var propGroup = document.CreateVSPropertyGroup(condition: this.ConditionText, parentEl: parentEl);
     if (null != this.OutputDirectory)
     {
         document.CreateVSElement("OutDir", value: this.OutputDirectory, parentEl: propGroup);
     }
     if (null != this.IntermediateDirectory)
     {
         document.CreateVSElement("IntDir", value: this.IntermediateDirectory, parentEl: propGroup);
     }
     if (null != this.TargetName)
     {
         document.CreateVSElement("TargetName", value: this.TargetName, parentEl: propGroup);
     }
     if (null != this.TargetExt)
     {
         document.CreateVSElement("TargetExt", value: this.TargetExt, parentEl: propGroup);
     }
 }
Ejemplo n.º 2
0
 SerializeProperties(
     System.Xml.XmlDocument document,
     System.Xml.XmlElement parentEl)
 {
     if (this.Type == EType.NA)
     {
         Bam.Core.Log.DebugMessage("Defaulting project {0} to type Utility", this.Project.ProjectPath);
         this.Type = EType.Utility;
         this.EnableIntermediatePath();
     }
     else
     {
         if (System.String.IsNullOrEmpty(this.PlatformToolset))
         {
             throw new Bam.Core.Exception("Platform toolset not set for project {0}", this.Project.ProjectPath);
         }
     }
     var propGroup = document.CreateVSPropertyGroup(label: "Configuration", condition: this.ConditionText, parentEl: parentEl);
     document.CreateVSElement("ConfigurationType", value: this.Type.ToString(), parentEl: propGroup);
     document.CreateVSElement("PlatformToolset", value: this.PlatformToolset.ToString(), parentEl: propGroup);
     document.CreateVSElement("UseDebugLibraries", value: this.UseDebugLibraries.ToString().ToLower(), parentEl: propGroup);
     document.CreateVSElement("CharacterSet", value: this.CharacterSet.ToString(), parentEl: propGroup);
     document.CreateVSElement("WholeProgramOptimization", value: this.WholeProgramOptimization.ToString().ToLower(), parentEl: propGroup);
 }