示例#1
0
        public static string GetBaseClassName(AbpProjectType abpProjectType)
        {
            var path = GetProjectPath(abpProjectType);
            var file = System.IO.Directory.GetFiles(path).FirstOrDefault(x => x.EndsWith("Base.cs"));

            if (file != null)
            {
                return(Path.GetFileNameWithoutExtension(file));
            }
            return("");
        }
示例#2
0
        public static string GetProjectPath(AbpProjectType abpProjectType)
        {
#pragma warning disable VSTHRD010
            var projects = GetALLProjectPath();
            foreach (var key in projects.Keys)
            {
                if (key == abpProjectType)
                {
                    return(projects[key]);
                }
            }

            return(null);
        }