예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Solution"/> class.
 /// </summary>
 public Solution()
 {
     FullPath       = null;
     headers        = new List <string>();
     projects       = new ProjectCollection(this);
     globalSections = new SectionCollection();
     Properties     = new PropertyItemCollection();
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Solution" /> class.
 /// </summary>
 /// <param name="fullpath">The fullpath.</param>
 /// <param name="headers">The headers.</param>
 /// <param name="projects">The projects.</param>
 /// <param name="globalSections">The global sections.</param>
 /// <param name="properties">The properties.</param>
 public Solution(string fullpath, [NotNull] IEnumerable <string> headers, IEnumerable <Project> projects, IEnumerable <Section> globalSections, IEnumerable <PropertyItem> properties)
 {
     FullPath            = fullpath;
     this.headers        = new List <string>(headers);
     this.projects       = new ProjectCollection(this, projects);
     this.globalSections = new SectionCollection(globalSections);
     Properties          = new PropertyItemCollection(properties);
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Section"/> class.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <param name="sectionType">Type of the section.</param>
 /// <param name="step">The step.</param>
 /// <param name="properties">The property lines.</param>
 public Section(string name, string sectionType, string step, IEnumerable <PropertyItem> properties)
 {
     if (name == null)
     {
         throw new ArgumentNullException("name");
     }
     this.name       = name;
     SectionType     = sectionType;
     Step            = step;
     this.properties = new PropertyItemCollection(properties);
 }
예제 #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Project"/> class.
        /// </summary>
        /// <param name="solution">The solution.</param>
        /// <param name="guid">The unique identifier.</param>
        /// <param name="typeGuid">The type unique identifier.</param>
        /// <param name="name">The name.</param>
        /// <param name="relativePath">The relative path.</param>
        /// <param name="parentGuid">The parent unique identifier.</param>
        /// <param name="projectSections">The project sections.</param>
        /// <param name="versionControlLines">The version control lines.</param>
        /// <param name="projectConfigurationPlatformsLines">The project configuration platforms lines.</param>
        /// <exception cref="System.ArgumentNullException">
        /// solution
        /// or
        /// guid
        /// or
        /// typeGuid
        /// or
        /// name
        /// </exception>
        public Project(
            Solution solution,
            Guid guid,
            Guid typeGuid,
            string name,
            string relativePath,
            Guid parentGuid,
            IEnumerable <Section> projectSections,
            IEnumerable <PropertyItem> versionControlLines,
            IEnumerable <PropertyItem> projectConfigurationPlatformsLines)
        {
            if (solution == null)
            {
                throw new ArgumentNullException("solution");
            }
            if (guid == null)
            {
                throw new ArgumentNullException("guid");
            }
            if (typeGuid == null)
            {
                throw new ArgumentNullException("typeGuid");
            }
            if (name == null)
            {
                throw new ArgumentNullException("name");
            }

            this.solution            = solution;
            this.guid                = guid;
            this.TypeGuid            = typeGuid;
            this.Name                = name;
            this.RelativePath        = relativePath;
            this.ParentGuid          = parentGuid;
            sections                 = new SectionCollection(projectSections);
            versionControlProperties = new PropertyItemCollection(versionControlLines);
            platformProperties       = new PropertyItemCollection(projectConfigurationPlatformsLines);
        }