diff --git a/Directory.Packages.props b/Directory.Packages.props index aeb0141..99d955e 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -2,8 +2,9 @@ true - 17.14.8 - 17.11.4 + 17.14.28 + 17.11.48 + 17.15.0-preview-25277-114 diff --git a/src/Microsoft.Build.Utilities.ProjectCreation.UnitTests/BuildEngineTests.cs b/src/Microsoft.Build.Utilities.ProjectCreation.UnitTests/BuildEngineTests.cs index 844aaf1..c2a8c2b 100644 --- a/src/Microsoft.Build.Utilities.ProjectCreation.UnitTests/BuildEngineTests.cs +++ b/src/Microsoft.Build.Utilities.ProjectCreation.UnitTests/BuildEngineTests.cs @@ -16,11 +16,31 @@ public void ConsoleLog() { BuildEngine buildEngine = GetBuildEngineWithEvents(i => { - i.LogErrorEvent(new BuildErrorEventArgs(null, "A6DAB901460D483FBDF3A0980B14C46F", "48F7F352E2914991827100BCEB69331F", 3, 4, 0, 0, "D988473FF8634A16A0CD8FE94FF20D53", null, null)); - i.LogWarningEvent(new BuildWarningEventArgs(null, "AE1B25881A694A70B2EA299C04625596", "07006F38A63E420AAB4124EBE58081BC", 1, 2, 0, 0, "3A3DD4A40DA44BA5BBB123E105EE1F71", null, null)); - i.LogMessageEvent(new BuildMessageEventArgs("61BD637C7D704D4B98C25805E3111152", null, null, MessageImportance.High)); - i.LogMessageEvent(new BuildMessageEventArgs("B02496FA4D3348A6997DC918EBF7455B", null, null, MessageImportance.Normal)); - i.LogMessageEvent(new BuildMessageEventArgs("2C254C4346A347AE94AE5E7FB6C03B0C", null, null, MessageImportance.Low)); + i.LogErrorEvent( + new BuildErrorEventArgs(null, "A6DAB901460D483FBDF3A0980B14C46F", "48F7F352E2914991827100BCEB69331F", 3, 4, 0, 0, "D988473FF8634A16A0CD8FE94FF20D53", null, null) + { + BuildEventContext = BuildEventContext.Invalid, + }); + i.LogWarningEvent( + new BuildWarningEventArgs(null, "AE1B25881A694A70B2EA299C04625596", "07006F38A63E420AAB4124EBE58081BC", 1, 2, 0, 0, "3A3DD4A40DA44BA5BBB123E105EE1F71", null, null) + { + BuildEventContext = BuildEventContext.Invalid, + }); + i.LogMessageEvent( + new BuildMessageEventArgs("61BD637C7D704D4B98C25805E3111152", null, null, MessageImportance.High) + { + BuildEventContext = BuildEventContext.Invalid, + }); + i.LogMessageEvent( + new BuildMessageEventArgs("B02496FA4D3348A6997DC918EBF7455B", null, null, MessageImportance.Normal) + { + BuildEventContext = BuildEventContext.Invalid, + }); + i.LogMessageEvent( + new BuildMessageEventArgs("2C254C4346A347AE94AE5E7FB6C03B0C", null, null, MessageImportance.Low) + { + BuildEventContext = BuildEventContext.Invalid, + }); }); buildEngine.GetConsoleLog() diff --git a/src/Microsoft.Build.Utilities.ProjectCreation.UnitTests/MockEventSource.cs b/src/Microsoft.Build.Utilities.ProjectCreation.UnitTests/MockEventSource.cs index ac2bbaf..634b87f 100644 --- a/src/Microsoft.Build.Utilities.ProjectCreation.UnitTests/MockEventSource.cs +++ b/src/Microsoft.Build.Utilities.ProjectCreation.UnitTests/MockEventSource.cs @@ -47,28 +47,44 @@ public void OnBuildFinished(bool succeeded, string? message = null, string? help public void OnErrorRaised(string message, string? code = null, string? file = null, int lineNumber = -1, int columnNumber = -1, int endLineNumber = -1, int endColumnNumber = -1, string? helpKeyword = null, string? senderName = null) { - BuildErrorEventArgs args = new BuildErrorEventArgs(null, code, file, lineNumber, columnNumber, endLineNumber, endColumnNumber, message, helpKeyword, senderName); + BuildErrorEventArgs args = new BuildErrorEventArgs(null, code, file, lineNumber, columnNumber, endLineNumber, endColumnNumber, message, helpKeyword, senderName) + { + BuildEventContext = BuildEventContext.Invalid, + }; + ErrorRaised?.Invoke(this, args); OnAnyEventRaised(args); } public void OnMessageRaised(string message, MessageImportance importance = MessageImportance.Normal) { - BuildMessageEventArgs args = new BuildMessageEventArgs(message, null, null, importance); + BuildMessageEventArgs args = new BuildMessageEventArgs(message, null, null, importance) + { + BuildEventContext = BuildEventContext.Invalid, + }; + MessageRaised?.Invoke(this, args); OnAnyEventRaised(args); } public void OnProjectFinished(string projectFile, bool succeeded, string? message = null, string? helpKeyword = null) { - ProjectFinishedEventArgs args = new ProjectFinishedEventArgs(message, helpKeyword, projectFile, succeeded); + ProjectFinishedEventArgs args = new ProjectFinishedEventArgs(message, helpKeyword, projectFile, succeeded) + { + BuildEventContext = BuildEventContext.Invalid, + }; + ProjectFinished?.Invoke(this, args); OnAnyEventRaised(args); } public void OnWarningRaised(string message, string? code = null, string? file = null, int lineNumber = -1, int columnNumber = -1, int endLineNumber = -1, int endColumnNumber = -1, string? helpKeyword = null, string? senderName = null) { - BuildWarningEventArgs args = new BuildWarningEventArgs(null, code, file, lineNumber, columnNumber, endLineNumber, endColumnNumber, message, helpKeyword, senderName); + BuildWarningEventArgs args = new BuildWarningEventArgs(null, code, file, lineNumber, columnNumber, endLineNumber, endColumnNumber, message, helpKeyword, senderName) + { + BuildEventContext = BuildEventContext.Invalid, + }; + WarningRaised?.Invoke(this, args); OnAnyEventRaised(args); } diff --git a/src/Microsoft.Build.Utilities.ProjectCreation/BuildEventArgsCollection.cs b/src/Microsoft.Build.Utilities.ProjectCreation/BuildEventArgsCollection.cs index 399274f..5745c6d 100644 --- a/src/Microsoft.Build.Utilities.ProjectCreation/BuildEventArgsCollection.cs +++ b/src/Microsoft.Build.Utilities.ProjectCreation/BuildEventArgsCollection.cs @@ -2,6 +2,7 @@ // // Licensed under the MIT license. +using Microsoft.Build.Evaluation; using Microsoft.Build.Framework; using Microsoft.Build.Logging; using System; @@ -108,8 +109,16 @@ public virtual void Dispose() /// Gets the current build output in the format of a console log. /// /// The logger verbosity to use. + /// Optional parameter indicating whether or not to show an error and warning summary at the end. + /// Optional parameter indicating whether or not to show time spent in tasks, targets and projects. + /// Optional parameter indicating whether or not to show only errors. + /// Optional parameter indicating whether or not to show only warnings. + /// Optional parameter indicating whether or not to show a list of items and properties at the start of each project build. + /// Optional parameter indicating whether or not to show messages. + /// Optional parameter indicating whether or not to show the timestamp as a prefix to any message. + /// Optional parameter indicating whether or not to show eventId for started events, finished events, and messages. /// The build output in the format of a console log. - public string GetConsoleLog(LoggerVerbosity verbosity = LoggerVerbosity.Normal) + public string GetConsoleLog(LoggerVerbosity verbosity = LoggerVerbosity.Normal, bool showSummary = true, bool performanceSummary = false, bool errorsOnly = false, bool warningsOnly = false, bool showItemAndPropertyList = true, bool showCommandLine = false, bool showTimestamp = false, bool showEventId = false) { if (_lastConsoleOutput != null && verbosity == _lastVerbosity) { @@ -118,65 +127,7 @@ public string GetConsoleLog(LoggerVerbosity verbosity = LoggerVerbosity.Normal) _lastVerbosity = verbosity; - StringBuilder sb = new StringBuilder(AllEvents.Count * 300); - - ConsoleLogger logger = new ConsoleLogger(verbosity, message => sb.Append(message), _ => { }, () => { }); - - foreach (BuildEventArgs buildEventArgs in AllEvents) - { - switch (buildEventArgs) - { - case BuildMessageEventArgs buildMessageEventArgs: - logger.MessageHandler(logger, buildMessageEventArgs); - break; - - case BuildErrorEventArgs buildErrorEventArgs: - logger.ErrorHandler(logger, buildErrorEventArgs); - break; - - case BuildWarningEventArgs buildWarningEventArgs: - logger.WarningHandler(logger, buildWarningEventArgs); - break; - - case BuildStartedEventArgs buildStartedEventArgs: - logger.BuildStartedHandler(logger, buildStartedEventArgs); - break; - - case BuildFinishedEventArgs buildFinishedEventArgs: - logger.BuildFinishedHandler(logger, buildFinishedEventArgs); - break; - - case ProjectStartedEventArgs projectStartedEventArgs: - logger.ProjectStartedHandler(logger, projectStartedEventArgs); - break; - - case ProjectFinishedEventArgs projectFinishedEventArgs: - logger.ProjectFinishedHandler(logger, projectFinishedEventArgs); - break; - - case TargetStartedEventArgs targetStartedEventArgs: - logger.TargetStartedHandler(logger, targetStartedEventArgs); - break; - - case TargetFinishedEventArgs targetFinishedEventArgs: - logger.TargetFinishedHandler(logger, targetFinishedEventArgs); - break; - - case TaskStartedEventArgs taskStartedEventArgs: - logger.TaskStartedHandler(logger, taskStartedEventArgs); - break; - - case TaskFinishedEventArgs taskFinishedEventArgs: - logger.TaskFinishedHandler(logger, taskFinishedEventArgs); - break; - - case CustomBuildEventArgs customBuildEventArgs: - logger.CustomEventHandler(logger, customBuildEventArgs); - break; - } - } - - _lastConsoleOutput = sb.ToString(); + _lastConsoleOutput = ConsoleLoggerStringBuilder.GetConsoleLogAsString(AllEvents, verbosity, showSummary, performanceSummary, errorsOnly, warningsOnly, showItemAndPropertyList, showCommandLine, showTimestamp, showEventId); ConsoleOutputCreated?.Invoke(this, verbosity); @@ -209,4 +160,4 @@ protected void Add(BuildEventArgs buildEventArgs) } } } -} \ No newline at end of file +} diff --git a/src/Microsoft.Build.Utilities.ProjectCreation/ConsoleLoggerStringBuilder.cs b/src/Microsoft.Build.Utilities.ProjectCreation/ConsoleLoggerStringBuilder.cs new file mode 100644 index 0000000..8d6cf00 --- /dev/null +++ b/src/Microsoft.Build.Utilities.ProjectCreation/ConsoleLoggerStringBuilder.cs @@ -0,0 +1,210 @@ +// Copyright (c) Jeff Kluge. All rights reserved. +// +// Licensed under the MIT license. + +using Microsoft.Build.Framework; +using Microsoft.Build.Logging; +using System; +using System.Collections.Generic; +using System.Text; + +namespace Microsoft.Build.Utilities.ProjectCreation +{ + /// + /// Represents a helper class to build a console log from a collection of . + /// + internal sealed class ConsoleLoggerStringBuilder + { + private readonly StringBuilder _stringBuilder; + + private ConsoleLoggerStringBuilder(StringBuilder stringBuilder) + { + _stringBuilder = stringBuilder; + } + + internal static string GetConsoleLogAsString(IReadOnlyCollection events, LoggerVerbosity verbosity = LoggerVerbosity.Normal, bool showSummary = true, bool performanceSummary = false, bool errorsOnly = false, bool warningsOnly = false, bool showItemAndPropertyList = true, bool showCommandLine = false, bool showTimestamp = false, bool showEventId = false) + { + StringBuilder stringBuilder = new StringBuilder(events.Count * (int)verbosity * 100); + + ConsoleLoggerStringBuilder consoleLoggerStringBuilder = new(stringBuilder); + + return consoleLoggerStringBuilder.ReplayEventsAndGetLogString(events, verbosity, showSummary, performanceSummary, errorsOnly, warningsOnly, showItemAndPropertyList, showCommandLine, showTimestamp, showEventId); + } + + private string GetLoggerParameters(bool showSummary, bool performanceSummary, bool errorsOnly, bool warningsOnly, bool showItemAndPropertyList, bool showCommandLine, bool showTimestamp, bool showEventId) + { + List parameters = new(capacity: 10) + { + "ForceNoAlign", + "DisableConsoleColor", + }; + + if (!showSummary) + { + parameters.Add("NoSummary"); + } + + if (performanceSummary) + { + parameters.Add("PerformanceSummary"); + } + + if (errorsOnly) + { + parameters.Add("ErrorsOnly"); + } + + if (warningsOnly) + { + parameters.Add("WarningsOnly"); + } + + if (!showItemAndPropertyList) + { + parameters.Add("NoItemAndPropertyList"); + } + + if (showCommandLine) + { + parameters.Add("ShowCommandLine"); + } + + if (showTimestamp) + { + parameters.Add("ShowTimestamp"); + } + + if (showEventId) + { + parameters.Add("ShowEventId"); + } + + return string.Join(";", parameters); + } + + private void OnColorReset() + { + } + + private void OnColorSet(ConsoleColor color) + { + } + + private void OnWrite(string message) + { + _stringBuilder.Append(message); + } + + private string ReplayEventsAndGetLogString(IReadOnlyCollection events, LoggerVerbosity verbosity = LoggerVerbosity.Normal, bool showSummary = true, bool performanceSummary = false, bool errorsOnly = false, bool warningsOnly = false, bool showItemAndPropertyList = true, bool showCommandLine = false, bool showTimestamp = false, bool showEventId = false) + { + ReplayEventSource eventSource = new ReplayEventSource(); + + ConsoleLogger logger = new ConsoleLogger(verbosity, OnWrite, OnColorSet, OnColorReset) + { + Parameters = GetLoggerParameters(showSummary, performanceSummary, errorsOnly, warningsOnly, showItemAndPropertyList, showCommandLine, showTimestamp, showEventId), + }; + + logger.Initialize(eventSource); + + eventSource.ReplayEvents(events); + + logger.Shutdown(); + + return _stringBuilder.ToString(); + } + + private class ReplayEventSource : IEventSource + { + public event AnyEventHandler? AnyEventRaised; + + public event BuildFinishedEventHandler? BuildFinished; + + public event BuildStartedEventHandler? BuildStarted; + + public event CustomBuildEventHandler? CustomEventRaised; + + public event BuildErrorEventHandler? ErrorRaised; + + public event BuildMessageEventHandler? MessageRaised; + + public event ProjectFinishedEventHandler? ProjectFinished; + + public event ProjectStartedEventHandler? ProjectStarted; + + public event BuildStatusEventHandler? StatusEventRaised; + + public event TargetFinishedEventHandler? TargetFinished; + + public event TargetStartedEventHandler? TargetStarted; + + public event TaskFinishedEventHandler? TaskFinished; + + public event TaskStartedEventHandler? TaskStarted; + + public event BuildWarningEventHandler? WarningRaised; + + public void ReplayEvents(IReadOnlyCollection events) + { + foreach (BuildEventArgs buildEventArgs in events) + { + AnyEventRaised?.Invoke(this, buildEventArgs); + + switch (buildEventArgs) + { + case BuildMessageEventArgs buildMessageEventArgs: + MessageRaised?.Invoke(this, buildMessageEventArgs); + break; + + case BuildErrorEventArgs buildErrorEventArgs: + ErrorRaised?.Invoke(this, buildErrorEventArgs); + break; + + case BuildWarningEventArgs buildWarningEventArgs: + WarningRaised?.Invoke(this, buildWarningEventArgs); + break; + + case BuildStartedEventArgs buildStartedEventArgs: + BuildStarted?.Invoke(this, buildStartedEventArgs); + break; + + case BuildFinishedEventArgs buildFinishedEventArgs: + BuildFinished?.Invoke(this, buildFinishedEventArgs); + break; + + case ProjectStartedEventArgs projectStartedEventArgs: + ProjectStarted?.Invoke(this, projectStartedEventArgs); + break; + + case ProjectFinishedEventArgs projectFinishedEventArgs: + ProjectFinished?.Invoke(this, projectFinishedEventArgs); + break; + + case TargetStartedEventArgs targetStartedEventArgs: + TargetStarted?.Invoke(this, targetStartedEventArgs); + break; + + case TargetFinishedEventArgs targetFinishedEventArgs: + TargetFinished?.Invoke(this, targetFinishedEventArgs); + break; + + case TaskStartedEventArgs taskStartedEventArgs: + TaskStarted?.Invoke(this, taskStartedEventArgs); + break; + + case TaskFinishedEventArgs taskFinishedEventArgs: + TaskFinished?.Invoke(this, taskFinishedEventArgs); + break; + + case CustomBuildEventArgs customBuildEventArgs: + CustomEventRaised?.Invoke(this, customBuildEventArgs); + break; + + case BuildStatusEventArgs statusEventArgs: + StatusEventRaised?.Invoke(this, statusEventArgs); + break; + } + } + } + } + } +} diff --git a/src/Microsoft.Build.Utilities.ProjectCreation/Microsoft.Build.Utilities.ProjectCreation.csproj b/src/Microsoft.Build.Utilities.ProjectCreation/Microsoft.Build.Utilities.ProjectCreation.csproj index 5389f92..b4f6ecf 100644 --- a/src/Microsoft.Build.Utilities.ProjectCreation/Microsoft.Build.Utilities.ProjectCreation.csproj +++ b/src/Microsoft.Build.Utilities.ProjectCreation/Microsoft.Build.Utilities.ProjectCreation.csproj @@ -26,15 +26,18 @@ snupkg - - + + NU1903 + + + NU1903 + - - + diff --git a/src/Microsoft.Build.Utilities.ProjectCreation/ProjectCreator.Project.cs b/src/Microsoft.Build.Utilities.ProjectCreation/ProjectCreator.Project.cs index 7518d23..c6ff893 100644 --- a/src/Microsoft.Build.Utilities.ProjectCreation/ProjectCreator.Project.cs +++ b/src/Microsoft.Build.Utilities.ProjectCreation/ProjectCreator.Project.cs @@ -96,7 +96,7 @@ public ProjectCreator TryGetProject( { buildOutput = BuildOutput.Create(); - projectCollection = projectCollection ?? new ProjectCollection(); + projectCollection ??= new ProjectCollection(); projectCollection.RegisterLogger(buildOutput); diff --git a/src/Microsoft.Build.Utilities.ProjectCreation/PublicAPI/net10.0/PublicAPI.Shipped.txt b/src/Microsoft.Build.Utilities.ProjectCreation/PublicAPI/net10.0/PublicAPI.Shipped.txt index 774e47d..c20bfc7 100644 --- a/src/Microsoft.Build.Utilities.ProjectCreation/PublicAPI/net10.0/PublicAPI.Shipped.txt +++ b/src/Microsoft.Build.Utilities.ProjectCreation/PublicAPI/net10.0/PublicAPI.Shipped.txt @@ -19,7 +19,7 @@ Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.AllEvents.get Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.BuildEventArgsCollection() -> void Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.ErrorEvents.get -> System.Collections.Generic.IReadOnlyCollection! Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.Errors.get -> System.Collections.Generic.IReadOnlyCollection! -Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.GetConsoleLog(Microsoft.Build.Framework.LoggerVerbosity verbosity = Microsoft.Build.Framework.LoggerVerbosity.Normal) -> string! +Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.GetConsoleLog(Microsoft.Build.Framework.LoggerVerbosity verbosity = Microsoft.Build.Framework.LoggerVerbosity.Normal, bool showSummary = true, bool performanceSummary = false, bool errorsOnly = false, bool warningsOnly = false, bool showItemAndPropertyList = true, bool showCommandLine = false, bool showTimestamp = false, bool showEventId = false) -> string! Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.MessageEvents.get -> Microsoft.Build.Utilities.ProjectCreation.BuildMessageEventArgsCollection! Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.Messages.get -> Microsoft.Build.Utilities.ProjectCreation.BuildMessageCollection! Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.WarningEvents.get -> System.Collections.Generic.IReadOnlyCollection! diff --git a/src/Microsoft.Build.Utilities.ProjectCreation/PublicAPI/net472/PublicAPI.Shipped.txt b/src/Microsoft.Build.Utilities.ProjectCreation/PublicAPI/net472/PublicAPI.Shipped.txt index 58e51cd..8d94495 100644 --- a/src/Microsoft.Build.Utilities.ProjectCreation/PublicAPI/net472/PublicAPI.Shipped.txt +++ b/src/Microsoft.Build.Utilities.ProjectCreation/PublicAPI/net472/PublicAPI.Shipped.txt @@ -19,7 +19,7 @@ Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.AllEvents.get Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.BuildEventArgsCollection() -> void Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.ErrorEvents.get -> System.Collections.Generic.IReadOnlyCollection! Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.Errors.get -> System.Collections.Generic.IReadOnlyCollection! -Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.GetConsoleLog(Microsoft.Build.Framework.LoggerVerbosity verbosity = Microsoft.Build.Framework.LoggerVerbosity.Normal) -> string! +Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.GetConsoleLog(Microsoft.Build.Framework.LoggerVerbosity verbosity = Microsoft.Build.Framework.LoggerVerbosity.Normal, bool showSummary = true, bool performanceSummary = false, bool errorsOnly = false, bool warningsOnly = false, bool showItemAndPropertyList = true, bool showCommandLine = false, bool showTimestamp = false, bool showEventId = false) -> string! Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.MessageEvents.get -> Microsoft.Build.Utilities.ProjectCreation.BuildMessageEventArgsCollection! Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.Messages.get -> Microsoft.Build.Utilities.ProjectCreation.BuildMessageCollection! Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.WarningEvents.get -> System.Collections.Generic.IReadOnlyCollection! diff --git a/src/Microsoft.Build.Utilities.ProjectCreation/PublicAPI/net8.0/PublicAPI.Shipped.txt b/src/Microsoft.Build.Utilities.ProjectCreation/PublicAPI/net8.0/PublicAPI.Shipped.txt index 774e47d..c20bfc7 100644 --- a/src/Microsoft.Build.Utilities.ProjectCreation/PublicAPI/net8.0/PublicAPI.Shipped.txt +++ b/src/Microsoft.Build.Utilities.ProjectCreation/PublicAPI/net8.0/PublicAPI.Shipped.txt @@ -19,7 +19,7 @@ Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.AllEvents.get Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.BuildEventArgsCollection() -> void Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.ErrorEvents.get -> System.Collections.Generic.IReadOnlyCollection! Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.Errors.get -> System.Collections.Generic.IReadOnlyCollection! -Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.GetConsoleLog(Microsoft.Build.Framework.LoggerVerbosity verbosity = Microsoft.Build.Framework.LoggerVerbosity.Normal) -> string! +Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.GetConsoleLog(Microsoft.Build.Framework.LoggerVerbosity verbosity = Microsoft.Build.Framework.LoggerVerbosity.Normal, bool showSummary = true, bool performanceSummary = false, bool errorsOnly = false, bool warningsOnly = false, bool showItemAndPropertyList = true, bool showCommandLine = false, bool showTimestamp = false, bool showEventId = false) -> string! Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.MessageEvents.get -> Microsoft.Build.Utilities.ProjectCreation.BuildMessageEventArgsCollection! Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.Messages.get -> Microsoft.Build.Utilities.ProjectCreation.BuildMessageCollection! Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.WarningEvents.get -> System.Collections.Generic.IReadOnlyCollection! diff --git a/src/Microsoft.Build.Utilities.ProjectCreation/PublicAPI/net9.0/PublicAPI.Shipped.txt b/src/Microsoft.Build.Utilities.ProjectCreation/PublicAPI/net9.0/PublicAPI.Shipped.txt index 774e47d..c20bfc7 100644 --- a/src/Microsoft.Build.Utilities.ProjectCreation/PublicAPI/net9.0/PublicAPI.Shipped.txt +++ b/src/Microsoft.Build.Utilities.ProjectCreation/PublicAPI/net9.0/PublicAPI.Shipped.txt @@ -19,7 +19,7 @@ Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.AllEvents.get Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.BuildEventArgsCollection() -> void Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.ErrorEvents.get -> System.Collections.Generic.IReadOnlyCollection! Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.Errors.get -> System.Collections.Generic.IReadOnlyCollection! -Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.GetConsoleLog(Microsoft.Build.Framework.LoggerVerbosity verbosity = Microsoft.Build.Framework.LoggerVerbosity.Normal) -> string! +Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.GetConsoleLog(Microsoft.Build.Framework.LoggerVerbosity verbosity = Microsoft.Build.Framework.LoggerVerbosity.Normal, bool showSummary = true, bool performanceSummary = false, bool errorsOnly = false, bool warningsOnly = false, bool showItemAndPropertyList = true, bool showCommandLine = false, bool showTimestamp = false, bool showEventId = false) -> string! Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.MessageEvents.get -> Microsoft.Build.Utilities.ProjectCreation.BuildMessageEventArgsCollection! Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.Messages.get -> Microsoft.Build.Utilities.ProjectCreation.BuildMessageCollection! Microsoft.Build.Utilities.ProjectCreation.BuildEventArgsCollection.WarningEvents.get -> System.Collections.Generic.IReadOnlyCollection! diff --git a/version.json b/version.json index 54ad603..33193d6 100644 --- a/version.json +++ b/version.json @@ -1,5 +1,5 @@ { - "version": "16.0", + "version": "16.1", "assemblyVersion": "1.0", "buildNumberOffset": -2, "nugetPackageVersion": {