If I have a Console.WriteLine or Logger.LogInformation in the BackgroundWorker.Main method then the build will always fail.
For instance, this will work
[BackgroundWorkerMain]
public override void Main()
{
//Logger.LogInformation("Initializing extension");
WebExtensions.Runtime.OnInstalled.AddListener(OnInstalled);
}
This will fail
[BackgroundWorkerMain]
public override void Main()
{
Logger.LogInformation("Initializing extension");
WebExtensions.Runtime.OnInstalled.AddListener(OnInstalled);
}
If I have a
Console.WriteLineorLogger.LogInformationin theBackgroundWorker.Mainmethod then the build will always fail.For instance, this will work
This will fail