C# 自定义MSBuild任务发出警告
如何使自定义生成任务发出警告 您必须从中删除的任务有一个成员:C# 自定义MSBuild任务发出警告,c#,msbuild,C#,Msbuild,如何使自定义生成任务发出警告 您必须从中删除的任务有一个成员: public Microsoft.Build.Utilities.TaskLoggingHelper Log { get; } 要使任务发出消息,请使用以下命令。具体而言: public void LogWarning(string message, params object[] messageArgs) Member of Microsoft.Build.Utilities.TaskLoggingHelper 例如:
public Microsoft.Build.Utilities.TaskLoggingHelper Log { get; }
要使任务发出消息,请使用以下命令。具体而言:
public void LogWarning(string message, params object[] messageArgs)
Member of Microsoft.Build.Utilities.TaskLoggingHelper
例如:
Log.LogWarning("My Warning");