private static bool IsDeveloperMode(bool isSyrup, string devDir, DeveloperConfig dv)
        {
            if (isSyrup)
            {
                return(false);
            }

            return(Directory.Exists(devDir) && dv.IgnoreMe == false);
        }
        private static string GetRoot(string appDir, string syrupDir, string devDir, DeveloperConfig dv)
        {
            // syrup is present - use syrup
            if (!string.IsNullOrEmpty(syrupDir))
            {
                return(new DirectoryInfo(syrupDir).Parent?.FullName);
            }
            if (!string.IsNullOrEmpty(devDir))
            {
                var vsAppDir = Path.Combine(devDir, dv.DevSubdir);
                if (Directory.Exists(vsAppDir))
                {
                    return(vsAppDir);
                }
            }

            return(appDir);
        }
        private static DeveloperConfig GetDevSettings(string devDir)
        {
            var res = new DeveloperConfig();

            if (!Directory.Exists(devDir))
            {
                return(res);
            }
            var devConfig = Path.Combine(devDir, _DEV_FILE);

            if (!File.Exists(devConfig))
            {
                return(res);
            }
            var json = File.ReadAllText(devConfig);
            var conf = JsonConvert.DeserializeObject <DeveloperConfig>(json);

            return(conf);
        }