Source

SolutionMaker / Src / SolutionMaker.Core / SolutionOptions.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.IO;

using SolutionMaker.Core.Model;

namespace SolutionMaker.Core
{
    [Serializable]
    public class SolutionOptions
    {
        public static readonly string CurrentVersion = "1.1";
        public static readonly string FileExtension = "slnmaker";

        private string _solutionFolderPath;
        private string _projectRootFolderPath;

        public SolutionOptions()
        {
            this.Recursive = true;
            this.SolutionFileVersion = Utils.GetPreferredSolutionFileVersion();
        }

        public string SchemaVersion { get { return CurrentVersion; } set { } }
        public string SolutionFolderPath { get { return _solutionFolderPath; } set { _solutionFolderPath = Path.GetFullPath(value); } }
        public string ProjectRootFolderPath { get { return _projectRootFolderPath; } set { _projectRootFolderPath = Path.GetFullPath(value); } }
        public string IncludeFilter { get; set; }
        public string ExcludeFilter { get; set; }
        public bool Recursive { get; set; }
        public SolutionFileVersion SolutionFileVersion { get; set; }
        public SolutionUpdateMode UpdateMode { get; set; }
        public bool OverwriteReadOnlyFile { get; set; }
        public int SolutionFolderLevels { get; set; }
        public int CommonPrefixLevels { get; set; }
        public string CommonPrefixes { get; set; }

        public bool SkipCommonProjectPrefix_1_0 { get; set; }
    }
}