* Add VersionAssemblyName to package manifest * Fix/improve nullability * Ensure package version from manifest is set when package migration exists * Set versionAssemblyName in umbracopackage template * Use Assembly.Load instead of ITypeFinder * Use AssemblyLoadContext to get asesmbly by name * Add PackageId to package manifest * Show ID on installed packages overview * Fallback to package ID to get assembly version * Include package ID in telemetry data * Set id in umbracopackage template * Add PackageId to PackageMigrationPlan * Get version from package migration assembly * Hide unknown package version * Always use package name from manifest * Use IPackagingService to return package telemety data * Set versionAssemblyName in umbracopackage-rcl template * Set id in umbracopackage-rcl template
38 lines
926 B
C#
38 lines
926 B
C#
using System.Runtime.Serialization;
|
|
|
|
namespace Umbraco.Cms.Core.Telemetry.Models;
|
|
|
|
/// <summary>
|
|
/// Serializable class containing information about an installed package.
|
|
/// </summary>
|
|
[DataContract(Name = "packageTelemetry")]
|
|
public class PackageTelemetry
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the identifier of the installed package.
|
|
/// </summary>
|
|
/// <value>
|
|
/// The identifier.
|
|
/// </value>
|
|
[DataMember(Name = "id")]
|
|
public string? Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the name of the installed package.
|
|
/// </summary>
|
|
/// <value>
|
|
/// The name.
|
|
/// </value>
|
|
[DataMember(Name = "name")]
|
|
public string? Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the version of the installed package.
|
|
/// </summary>
|
|
/// <value>
|
|
/// The version.
|
|
/// </value>
|
|
[DataMember(Name = "version")]
|
|
public string? Version { get; set; }
|
|
}
|