added PackageName property to IModule and ITheme interfaces to allow creators to specify the Nuget package name associated to a specific module/theme. This is necessary for packages which contain multiple extensions.
This commit is contained in:
@ -231,6 +231,10 @@ namespace Oqtane.Repository
|
||||
moduledefinition.Version = ""; // will be populated from database
|
||||
moduledefinition.ControlTypeTemplate = modulecontroltype.Namespace + "." + Constants.ActionToken + ", " + modulecontroltype.Assembly.GetName().Name;
|
||||
moduledefinition.AssemblyName = assembly.GetName().Name;
|
||||
if (string.IsNullOrEmpty(moduledefinition.PackageName))
|
||||
{
|
||||
moduledefinition.PackageName = Utilities.GetTypeName(moduledefinition.ModuleDefinitionName);
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(moduledefinition.Categories))
|
||||
{
|
||||
|
@ -100,6 +100,10 @@ namespace Oqtane.Repository
|
||||
theme.Themes = new List<ThemeControl>();
|
||||
theme.Containers = new List<ThemeControl>();
|
||||
theme.AssemblyName = assembly.FullName.Split(",")[0];
|
||||
if (string.IsNullOrEmpty(theme.PackageName))
|
||||
{
|
||||
theme.PackageName = Utilities.GetTypeName(theme.ThemeName);
|
||||
}
|
||||
themes.Add(theme);
|
||||
index = themes.FindIndex(item => item.ThemeName == qualifiedThemeType);
|
||||
}
|
||||
|
Reference in New Issue
Block a user