<PackageReference Include="NLog" Version="6.1.4" />

NLog.LayoutRenderers.AssemblyVersionLayoutRenderer

Renders the assembly version information for the entry assembly or a named assembly.
public string Default { get; set; }

The default value to render if the Version is not available

public string Format { get; set; }

Gets or sets the custom format of the assembly version output.

public string Name { get; set; }

The (full) name of the assembly. If null, using the entry assembly.

public AssemblyVersionType Type { get; set; }

Gets or sets the type of assembly version to retrieve.

protected virtual Assembly GetAssembly()

Gets the assembly specified by Name, or entry assembly otherwise