예제 #1
0
파일: MsBuildTask.cs 프로젝트: speier/shake
        public MsBuildTask(string solution = null)
        {
            Targets = new List<string>();
            Properties = new DynamicProperties();

            if (!string.IsNullOrEmpty(solution))
                Solution = solution;
        }
예제 #2
0
파일: ShakeArgs.cs 프로젝트: speier/shake
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="args">Command line arguments.</param>
        internal ShakeArgs(IEnumerable<string> args)
        {
            ShakeFilePath = Path.Combine(Directory.GetCurrentDirectory(), ShakeConsts.DefaultFileName);
            ShakeClassName = ShakeConsts.DefaultClassName;

            Targets = new List<string>();
            Properties = new DynamicProperties();

            Parse(args);

            // if there is no target specified, then we add "Default" target
            if (Targets.Count == 0)
                Targets.Add(ShakeConsts.DefaultTargetName);
        }