OutputType Class

Summary

Specifies the format in which GitVersion outputs version variables.
Assembly
GitVersion.Core.dll
Namespace
GitVersion
Base Types
  • Enum
graph BT Type-->Base0["Enum"] Type["OutputType"] class Type type-node

Syntax

public sealed class OutputType : Enum

Fields

Name Constant Value Summary
BuildServer 0
Writes version variables to the CI build server's environment (e.g. TeamCity build parameters, GitHub Actions outputs).
static
DotEnv 3
Writes version variables in the KEY=value dotenv format.
static
File 2
Writes version variables to a file on disk.
static
Json 1
Writes version variables as a JSON object to standard output.
static
value__

Extension Methods

Name Value Summary
NotNull<OutputType>(string) T
Throws System.ArgumentNullException when value is null; otherwise returns the value.