joeltankam / msbuild-target-logger

Console logger for MSBuild that only log targets being ran

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TargetLogger

Build NuGet package

A console logger that logs only projects and targets being built.

Requirements

  • .NET Framework 4.6.1
  • MSBuild 14.0

Usage

TargetLogger can be downloaded from nuget : packages/TargetLogger

nuget install TargetLogger -OutputDirectory packages

The logging assembly is located under : lib\netstandard2.0\TargetLogger.dll. This file is passed to MSBuild to specify our custom logging.

msbuild /nologo /noconsolelogger /logger:packages/TargetLogger.1.0.0/lib/netstandar2.0/TargetLogger.dll

The /noconsolelogger switch is important to remove MSBuild's default console output.

Sample

Here's an example using Build.proj from samples

Sample gif

About

Console logger for MSBuild that only log targets being ran

License:MIT License


Languages

Language:C# 100.0%