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))
private void CreateConfig() { if (_scaffoldingConfig == null) { _scaffoldingConfig = ScaffoldingConfig.Instance; } _scriptsPath = _scaffoldingConfig.ScaffoldingScriptsPath; _prefabsPath = _scaffoldingConfig.ScaffoldingResourcesPath; _instantiatePath = _scaffoldingConfig.ScaffoldingInstantiatePath; _modelPath = _scaffoldingConfig.ScaffoldingModelInstantiatePath; _enableAllGameObjects = _scaffoldingConfig.ScaffoldingEnableAllGameobjects; }
private void CreateConfig() { if (_scaffoldingConfig == null) { _scaffoldingConfig = ScaffoldingConfig.Instance; } _scriptsPath = _scaffoldingConfig.ScaffoldingScriptsPath; if (_scriptsPath.Count == 0) { _scriptsPath.Add("Assets/Scripts/Views/"); } _prefabsPath = _scaffoldingConfig.ScaffoldingResourcesPath; if (_prefabsPath.Count == 0) { _prefabsPath.Add("Assets/Resources/Views"); } _instantiatePath = _scaffoldingConfig.ScaffoldingInstantiatePath; _modelPath = _scaffoldingConfig.ScaffoldingModelInstantiatePath; _enableAllGameObjects = _scaffoldingConfig.ScaffoldingEnableAllGameobjects; }
private void CreateConfig() { _scaffoldingConfig = ScaffoldingConfig.Instance; }
public async void CanDeserializeConfig() { var config = await ScaffoldingConfig.LoadFromJsonAsync(); Assert.IsTrue(config.NetStandard20Packages.Any()); }