Summary
Adds a message to the AppVeyor build log. Messages can be categorised as: Information, Warning or Error.
Syntax
void AddMessage(string message, AppVeyorMessageCategoryType category = Information, string details = null)
Examples
if (BuildSystem.AppVeyor.IsRunningOnAppVeyor)
{
BuildSystem.AppVeyor.AddMessage(
"This is a error message.",
AppVeyorMessageCategoryType.Error,
"Error details."
);
BuildSystem.AppVeyor.AddMessage(
"This is a information message.",
AppVeyorMessageCategoryType.Information,
"Information details."
);
BuildSystem.AppVeyor.AddMessage(
"This is a warning message.",
AppVeyorMessageCategoryType.Warning,
"Warning details."
);
}
else
{
Information("Not running on AppVeyor");
}
if (AppVeyor.IsRunningOnAppVeyor)
{
AppVeyor.AddMessage(
"This is a error message.",
AppVeyorMessageCategoryType.Error,
"Error details."
);
AppVeyor.AddMessage(
"This is a information message.",
AppVeyorMessageCategoryType.Information,
"Information details."
);
AppVeyor.AddMessage(
"This is a warning message.",
AppVeyorMessageCategoryType.Warning,
"Warning details."
);
}
else
{
Information("Not running on AppVeyor");
}
Parameters
Name |
Type |
Description |
message |
string |
A short message to display. |
category |
AppVeyorMessageCategoryType |
The category of the message. |
details |
string |
Additional message details. |
Return Value