public static TestProject AsTodayExtensionProject(this TestProject self) { var clone = self.Clone(); clone.Path = Path.Combine(Path.GetDirectoryName(self.Path), Target.ProjectsDir, "today", Path.GetFileNameWithoutExtension(self.Path) + "-today" + Path.GetExtension(self.Path)); return(clone); }
public static TestProject AsTvOSProject(this TestProject self) { var clone = self.Clone(); clone.Path = Path.Combine(Path.GetDirectoryName(self.Path), Path.GetFileNameWithoutExtension(self.Path) + "-tvos" + Path.GetExtension(self.Path)); return(clone); }
public static TestProject AsWatchOSProject(this TestProject self) { var clone = self.Clone(); var fileName = Path.GetFileNameWithoutExtension(self.Path); clone.Path = Path.Combine(Path.GetDirectoryName(self.Path), Target.ProjectsDir, "watchos", fileName + (fileName.Contains("-watchos") ? "" : "-watchos") + Path.GetExtension(self.Path)); return(clone); }
public static TestProject AsTvOSProject(this TestProject self) { var clone = self.Clone(); var suffix = string.Empty; if (self.IsDotNetProject) { suffix = "-dotnet"; } clone.Path = Path.Combine(Path.GetDirectoryName(self.Path), Target.ProjectsDir, "tvos" + suffix, Path.GetFileNameWithoutExtension(self.Path) + "-tvos" + Path.GetExtension(self.Path)); return(clone); }