Should Program class be static? : <p>I am getting the following Warning in Visual Studio 2019, after creating a new ASP.NET Core 3 project:</p>

<p>Warning CA1052
Type 'Program' is a static holder type but is neither static nor NotInheritable</p>

<pre class="lang-cs prettyprint-override"><code>public class Program
    {
        public static void Main(string[] args)
        {
            // ...
        }

        public static IHostBuilder CreateHostBuilder(string[] args) =&gt;
            // ...
    }
</code></pre>

<p>vs</p>

<pre class="lang-cs prettyprint-override"><code>public static class Program
    {
        public static void Main(string[] args)
        {
            // ...
        }

        public static IHostBuilder CreateHostBuilder(string[] args) =&gt;
            // ...
    }
</code></pre>

<p>Should I add the static modifier? Why / Why not? Pro's and Cons'?</p>

<p>Edit: This is a ASP.NET Core 3 <strong>API</strong></p>
