public MsBuildTask(string solution = null) { Targets = new List<string>(); Properties = new DynamicProperties(); if (!string.IsNullOrEmpty(solution)) Solution = solution; }
/// <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); }