Skip to content

Environment layout renderer

Rolf Kristensen edited this page Nov 27, 2021 · 10 revisions

The environment variable like Path, TMP, PROCESSOR_ARCHITECTURE etc.

Platforms Supported: All

Configuration Syntax

${environment:variable=String}

Parameters

Rendering Options

  • variable - Name of the environment variable. Required. Examples: Path, TMP, USERPROFILE, PROCESSOR_ARCHITECTURE

Remarks

  • To list all environment variables in your system: Environment.GetEnvironmentVariables()

  • These are the environment variables, not the properties listed at Environment Class on MSDN

Example

log file for 32 bits systems in folder 32 and otherwise in folder 64

<target 
   xsi:type="File"
   name="file1" 
   fileName="c:\temp\${when:when='${environment:PROCESSOR_ARCHITECTURE}'='X86':inner=32:else=64}\file.log" />
Clone this wiki locally