Skip to content

AssemblyVersion Layout Renderer

Julian Verdurmen edited this page Aug 6, 2016 · 4 revisions

Renders the assembly version of the entry or a named assembly.

##Configuration Syntax

${assembly-version:name=string}

Parameters

  • name: the name of the assembly. Note will load it. If null, will find the entry assembly. Introduced in NLog 4.3.7

Examples

${assembly-version:NLogAutloadExtension}

Notes

  • is uses Version.ToString
  • Does not work in ASP.NET apps. Returns "Could not find entry assembly" in this case.
Clone this wiki locally