private void OnError(object sender, Microsoft.Build.Framework.BuildErrorEventArgs args) { var msBuildDiagnostic = MSBuildDiagnostic.CreateFrom(args); _logger.LogError(msBuildDiagnostic.Message); _diagnostics.Add(msBuildDiagnostic); }
private void OnWarning(object sender, Microsoft.Build.Framework.BuildWarningEventArgs args) { _logger.LogWarning(args.Message); _diagnostics.Add(MSBuildDiagnostic.CreateFrom(args)); }