Out of the box support
The MyGet alias, which returns an IMyGetProvider instance can be used to interact with the MyGet environment.
The following example writes an error message if running on MyGet:
if (BuildSystem.MyGet.IsRunningOnMyGet)
{
BuildSystem.MyGet.WriteStatus(
"This is a error message.",
MyGetBuildStatus.Error,
"Error details."
);
}
else
{
Information("Not running on MyGet");
}
See IMyGetProvider for details and available methods to interact with MyGet.
Available 3rd party extensions
No extensions found