Exemplo n.º 1
0
        public static LicensePolicies LoadFrom(string licensePoliciesPath, string packagePoliciesPath, string projectsInfoPath)
        {
            var packagePolicies = PackagePolicies.LoadFrom(packagePoliciesPath);

            string str = File.ReadAllText(licensePoliciesPath);
            ICollection <LicensePolicy> policies = JsonConvert.DeserializeObject <List <LicensePolicy> >(str);

            var projects = Projects.LoadFrom(projectsInfoPath);

            return(new LicensePolicies(policies, packagePolicies, projects));
        }