daveaglick / Scripty

Tools to let you use Roslyn-powered C# scripts for code generation
MIT License
621 stars 69 forks source link

Added logging to context #112

Closed MaartenX closed 7 years ago

MaartenX commented 7 years ago

Added a way to log messages and warnings directly to Msbuild or Visual Studio when using a generator.

Usage:

Context.Log.Info Context.Log.Warning Context.Log.Error

daveaglick commented 7 years ago

This is great, thanks! Note that I'll be removing the Visual Studio extension and custom tool soon (see https://github.com/daveaglick/Scripty/issues/114), but logging via the MSBuild task will still be very welcome.