Skip to content

Console logger for MSBuild that only log targets being ran

License

Notifications You must be signed in to change notification settings

joeltankam/msbuild-target-logger

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages