Ejemplo n.º 1
0
        public static string GetOuputFilePath(string currentCfgFolderPath, IAppSolution ts, IAppProject tp, string relativePathToGenFolder, string fileName)
        {
            StringBuilder sb = new StringBuilder();

            sb.Append(currentCfgFolderPath);
            var folder = Path.GetDirectoryName(ts.RelativeAppSolutionPath);

            if (folder?.Length > 0)
            {
                sb.Append(folder);
                sb.Append("\\");
            }
            folder = Path.GetDirectoryName(tp.RelativeAppProjectPath);
            if (folder?.Length > 0)
            {
                sb.Append(folder);
                sb.Append("\\");
            }
            if (!string.IsNullOrWhiteSpace(relativePathToGenFolder))
            {
                sb.Append(relativePathToGenFolder);
                if (relativePathToGenFolder[relativePathToGenFolder.Length - 1] != '\\')
                {
                    sb.Append("\\");
                }
            }
            sb.Append(fileName);
            return(sb.ToString());
        }
Ejemplo n.º 2
0
        protected override void EndVisit(IAppSolution cn)
        {
            var p = (AppSolution)cn;

            if (p.IsHasMarkedForDeletion)
            {
                var lst = p.ListAppProjects.ToList();
                foreach (var t in lst)
                {
                    if (t.IsMarkedForDeletion)
                    {
                        p.ListAppProjects.Remove(t);
                    }
                }
            }
        }
Ejemplo n.º 3
0
 public static string GetOuputFilePath(string currentCfgFolderPath, IAppSolution ts, IAppProject tp, IAppProjectGenerator tpg, string fileName)
 {
     return(GetOuputFilePath(currentCfgFolderPath, ts, tp, tpg.RelativePathToGenFolder, fileName));
 }
Ejemplo n.º 4
0
 protected virtual void BeginVisit(IAppSolution t)
 {
 }
Ejemplo n.º 5
0
 protected virtual void EndVisit(IAppSolution t)
 {
 }