Esempio n. 1
0
        internal protected virtual void OnWriteSolution(ProgressMonitor monitor, SlnFile file)
        {
            var secAttribute = (SolutionDataSectionAttribute)Attribute.GetCustomAttribute(GetType(), typeof(SolutionDataSectionAttribute));

            if (secAttribute != null && secAttribute.ProcessOrder == SlnSectionType.PreProcess)
            {
                var sec = file.Sections.GetOrCreateSection(secAttribute.SectionName, SlnSectionType.PreProcess);
                sec.SkipIfEmpty = true;
                sec.WriteObjectProperties(this);
            }

            next.OnWriteSolution(monitor, file);

            if (secAttribute != null && secAttribute.ProcessOrder == SlnSectionType.PostProcess)
            {
                var sec = file.Sections.GetOrCreateSection(secAttribute.SectionName, SlnSectionType.PostProcess);
                sec.SkipIfEmpty = true;
                sec.WriteObjectProperties(this);
            }
        }
Esempio n. 2
0
 internal void WriteSolution(ProgressMonitor monitor, SlnFile file)
 {
     SolutionExtension.OnWriteSolution(monitor, file);
 }