Exemple #1
0
        /// <summary>
        /// Creates a new <see cref="SolutionPropertiesGlobalSection"/> with the <see cref="SolutionPropertiesGlobalSection.GlobalSectionName"/> and <see cref="PreOrPostSolution.PreSolution"/>.
        /// </summary>
        public static SolutionPropertiesGlobalSection New()
        {
            var output = new SolutionPropertiesGlobalSection
            {
                Name = SolutionPropertiesGlobalSection.GlobalSectionName,
                PreOrPostSolution = PreOrPostSolution.PreSolution,
            };

            return(output);
        }
Exemple #2
0
        public static SolutionPropertiesGlobalSection CreateSolutionPropertiesGlobalSection()
        {
            var solutionProperties = new SolutionPropertiesGlobalSection
            {
                Name = SolutionPropertiesGlobalSection.GlobalSectionName,
                PreOrPostSolution = PreOrPostSolution.PreSolution,
            };

            solutionProperties.HideSolutionNode = false;

            return(solutionProperties);
        }
Exemple #3
0
        public static bool HasSolutionPropertiesGlobalSection(this IEnumerable <ISolutionFileGlobalSection> globalSections, out SolutionPropertiesGlobalSection solutionPropertiesGlobalSection)
        {
            var output = globalSections.HasGlobalSectionByName(SolutionPropertiesGlobalSection.GlobalSectionName, out solutionPropertiesGlobalSection);

            return(output);
        }