Exemplo n.º 1
0
    private CustomBuilderConfiguration LoadConfiguration(string name)
    {
        var config = new CustomBuilderConfiguration();

        string path = BuildConfigurationsDir + name + ".json";
        if (File.Exists(path))
        {
            config.name = name;
            config.FromJson(JObject.Parse(File.ReadAllText(path)));
        }
        else
        {
            config.InitializeNew(name);
        }

        return config;
    }