예제 #1
0
        private void OnError(object sender, Microsoft.Build.Framework.BuildErrorEventArgs args)
        {
            var msBuildDiagnostic = MSBuildDiagnostic.CreateFrom(args);

            _logger.LogError(msBuildDiagnostic.Message);
            _diagnostics.Add(msBuildDiagnostic);
        }
예제 #2
0
 private void OnWarning(object sender, Microsoft.Build.Framework.BuildWarningEventArgs args)
 {
     _logger.LogWarning(args.Message);
     _diagnostics.Add(MSBuildDiagnostic.CreateFrom(args));
 }