Esempio n. 1
0
        async Task <IEnumerable <PackageDescription> > GetPackagesToInstallAsync()
        {
            var scaffoldingConfig = await ScaffoldingConfig.LoadFromJsonAsync();

            var frameworkVersion = project.TargetFramework.Id.Version;

            if (SupportPolicyVersion.TryCreateFromVersionString(frameworkVersion, out var policyVersion))
            {
                if (scaffoldingConfig.TryGetPackagesForSupportPolicyVersion(policyVersion, out PackageDescription [] packageDescriptions))
Esempio n. 2
0
        public async void CanDeserializeConfig()
        {
            var config = await ScaffoldingConfig.LoadFromJsonAsync();

            Assert.IsTrue(config.NetStandard20Packages.Any());
        }