public RemoteController BuildRemoteController() { var path = Path.ToFullPath(); var controller = new RemoteController(path); if (BuildFlag.IsNotEmpty()) { controller.UseBuildProfile(BuildFlag); } if (TimeoutFlag.HasValue) { controller.Project.StopConditions.TimeoutInSeconds = TimeoutFlag.Value; } if (TeamCityTracingFlag) { controller.Project.TracingStyle = "TeamCity"; } controller.Project.MaxRetries = RetriesFlag; controller.Project.Profile = ProfileFlag; if (ConfigFlag.IsNotEmpty()) { controller.ConfigFile = ConfigFlag; } return(controller); }
private Project configureProject() { var path = Path.ToFullPath(); var project = Project.LoadForFolder(path); if (BuildFlag.IsNotEmpty()) { project.BuildProfile = BuildFlag; } if (ConfigFlag.IsNotEmpty()) { project.ConfigFile = ConfigFlag; } project.Culture = CultureFlag; if (TimeoutFlag.HasValue) { project.StopConditions.TimeoutInSeconds = TimeoutFlag.Value; } if (TeamCityTracingFlag) { project.TracingStyle = "TeamCity"; } if (SystemNameFlag.IsNotEmpty()) { project.SystemTypeName = SystemNameFlag; } project.MaxRetries = RetriesFlag; project.Profile = ProfileFlag; project.Mode = _mode; return(project); }
protected virtual Project configureProject() { var path = Path.ToFullPath(); var project = Project.LoadForFolder(path); project.Framework = FrameworkFlag; #if NET46 project.UseSeparateAppDomain = AppDomainFlag; #endif if (BuildFlag.IsNotEmpty()) { project.BuildProfile = BuildFlag; } if (ConfigFlag.IsNotEmpty()) { project.ConfigFile = ConfigFlag; } project.Culture = CultureFlag; if (TimeoutFlag.HasValue) { project.StopConditions.TimeoutInSeconds = TimeoutFlag.Value; } if (SystemNameFlag.IsNotEmpty()) { project.SystemTypeName = SystemNameFlag; } project.Profile = ProfileFlag; project.Mode = _mode; return(project); }