diff --git a/Build.cs b/Build.cs index d68217e..1b2be35 100644 --- a/Build.cs +++ b/Build.cs @@ -348,7 +348,7 @@ private void SonarLogger(OutputType type, string text) } }); - public void CustomDotnetLogger(OutputType type, string text) + public static void CustomDotnetLogger(OutputType type, string text) { Logger.Info(text); @@ -950,7 +950,7 @@ private async Task SendSwaggerSchemaToValidator(HttpClient httpClient, s } }); - private void GitLogger(OutputType type, string text) + private static void GitLogger(OutputType type, string text) { if (text.Contains("github returned 422 Unprocessable Entity") && text.Contains("already_exists")) { diff --git a/Configuration.cs b/Configuration.cs index 9b22a3b..5441f90 100644 --- a/Configuration.cs +++ b/Configuration.cs @@ -4,8 +4,8 @@ [TypeConverter(typeof(TypeConverter))] public class Configuration : Enumeration { - public static Configuration Debug = new Configuration { Value = nameof(Debug) }; - public static Configuration Release = new Configuration { Value = nameof(Release) }; + public readonly static Configuration Debug = new Configuration { Value = nameof(Debug) }; + public readonly static Configuration Release = new Configuration { Value = nameof(Release) }; public static implicit operator string(Configuration configuration) {