/// <summary> /// Converts project name to FileReference used by other commandlet functions /// </summary> /// <param name="ProjectName">Project name.</param> /// <returns>FileReference to project location</returns> public static FileReference GetCommandletProjectFile(string ProjectName) { FileReference ProjectFullPath = null; var OriginalProjectName = ProjectName; ProjectName = ProjectName.Trim(new char[] { '\"' }); if (ProjectName.IndexOfAny(new char[] { '\\', '/' }) < 0) { ProjectName = CombinePaths(CmdEnv.LocalRoot, ProjectName, ProjectName + ".uproject"); } else if (!FileExists_NoExceptions(ProjectName)) { ProjectName = CombinePaths(CmdEnv.LocalRoot, ProjectName); } if (FileExists_NoExceptions(ProjectName)) { ProjectFullPath = new FileReference(ProjectName); } else { var Branch = new BranchInfo(new List <UnrealTargetPlatform> { UnrealBuildTool.BuildHostPlatform.Current.Platform }); var GameProj = Branch.FindGame(OriginalProjectName); if (GameProj != null) { ProjectFullPath = GameProj.FilePath; } if (!FileExists_NoExceptions(ProjectFullPath.FullName)) { throw new AutomationException("Could not find a project file {0}.", ProjectName); } } return(ProjectFullPath); }
public static string StaticGetFullName(UnrealTargetPlatform InHostPlatform, BranchInfo.BranchUProject InProject, UnrealTargetPlatform InTargetPlatform, bool bIsCodeTargetPlatform) { string Name = InProject.GameName + "_" + InTargetPlatform + "_Mono"; if(bIsCodeTargetPlatform) { Name += "_Precompiled"; } return Name + "_Strip" + StaticGetHostPlatformSuffix(InHostPlatform); }