private void ResolveFolder(FolderPackageMetadata folderMetadata, string folder, string templateName) { switch (folderMetadata.PackageType) { case PackageManager.PACKAGE_TYPE_TEMPLATE: if (folder != string.Empty) { throw new InvalidOperationException("Reference folder must be empty for template type."); } _projectTemplateApplier.Apply(folderMetadata.Folder, templateName); break; default: throw new InvalidOperationException("Unable to resolve source package with type '" + folderMetadata.PackageType + "' using folder-based package."); } }
private void ResolveFolder(FolderPackageMetadata folderMetadata, string folder, string templateName) { switch (folderMetadata.PackageType) { case PackageManager.PACKAGE_TYPE_TEMPLATE: if (folder != string.Empty) { throw new InvalidOperationException("Reference folder must be empty for template type."); } _projectTemplateApplier.Apply(folderMetadata.Folder, templateName); break; default: throw new InvalidOperationException("Unable to resolve source package with type '" + folderMetadata.PackageType + "' using folder-based package."); } }