//private static void ProcessReferenceItems(XmlNodeList nodes, Project project){
 //    foreach (XmlNode node in nodes){
 //        if (node.Attributes != null){
 //            var name = GetName(node.Attributes[0]);
 //            var specificVersionString = ProjectParserHelper.GetProperty(node, Constants.PROPERTY_SPECIFICVERSION);
 //            var specificVersion = specificVersionString != null && bool.Parse(specificVersionString);
 //            var hintPath = ProjectParserHelper.GetProperty(node, Constants.PROPERTY_HINTPATH);
 //            var reference = new Reference{
 //                Name = name,
 //                SpecificVersion = specificVersion,
 //                HintPath = hintPath
 //            };
 //            project.References.Add(reference);
 //        }
 //    }
 //}
 private static void ProcessSourceItems(XmlNodeList nodes, Project project, string itemType)
 {
     foreach (XmlNode node in nodes){
         SourceCodeFile sourceFile = null;
         if (node.Attributes != null){
             var filename = GetName(node.Attributes[0]);
             var relativePath = GetRelativePath(node.Attributes[0]);
             var subType = ProjectParserHelper.GetProperty(node, Constants.PROPERTY_SUBTYPE);
             var dependentUpon = ProjectParserHelper.GetProperty(node, Constants.PROPERTY_DEPENDENTUPON);
             sourceFile = new SourceCodeFile{
                 FileName = filename,
                 RelativePath = relativePath,
                 IsCompiled = true,
                 SubType = subType,
                 DependentUpon = dependentUpon
             };
         }
         project.SourceFiles.Add(sourceFile);
     }
 }
 private static void ProcessSourceItems(XmlNodeList nodes, ProjectObject project, string itemType)
 {
     foreach (XmlNode node in nodes) {
         SourceCodeFile sourceFile;
         string filename = GetName(node.Attributes[0]);
         string relativePath = GetRelativePath(node.Attributes[0]);
         string subType = GetProperty(node, Constants.PROPERTY_SUBTYPE);
         if(itemType.Equals(Constants.ITEM_GROUP_COMPILE)) {
             string dependentUpon = GetProperty(node, Constants.PROPERTY_DEPENDENTUPON);
             sourceFile = new SourceCodeFile { FileName = filename, RelativePath = relativePath, IsCompiled = true, SubType = subType, DependentUpon = dependentUpon };
         } else {
             string copyToOutputDirectory = GetProperty(node, Constants.PROPERTY_COPYTOOUTPUTDIRECTORY);
             sourceFile = new SourceCodeFile { FileName = filename, RelativePath = relativePath, IsCompiled = false, SubType = subType, CopyToOutputDirectory = copyToOutputDirectory };
         }
         project.SourceFiles.Add(sourceFile);
     }
 }