title: Method not found: 'System.IServiceProvider Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider'
body: <p>In my Main method of .net Core app Iam getting this error and I dunno where should I look for solution.</p>
  
  <p>this is my main method:</p>
  
  <pre><code> public static void Main(string[] args)
      {
          var host = new WebHostBuilder()
              .UseKestrel()
              .UseContentRoot(Directory.GetCurrentDirectory())
              .UseIISIntegration()
              .UseStartup&lt;Startup&gt;()
              .UseApplicationInsights()
              .Build();
  
          host.Run();
      }
  </code></pre>
  
  <p>This is error message I am getting when hit F5 to fire project:</p>
  
  <pre><code>System.MissingMethodException: 'Method not found: 'System.IServiceProvider Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(Microsoft.Extensions.DependencyInjection.IServiceCollection)'.'
  </code></pre>