title: How to solve calling Startup.cs from Program.cs?
body: <p><strong>EDIT</strong></p>
  <p>I'm using Blazor WASM project. I'm trying to create an Indexed DB to my project with TG.Blazor.IndexedDB NuGet Package. I create Startup.cs in my project. I have a few error in Program.cs &amp; Startup.cs.</p>
  <blockquote>
  <p>Error CS0246  The type or namespace name 'IComponentsApplicationBuilder' could not be found (are you missing a using directive or an assembly reference?)</p>
  </blockquote>
  <p><strong>Starup.cs</strong></p>
  <pre><code>using System.Collections.Generic;
  using Microsoft.Extensions.DependencyInjection;
  using TG.Blazor.IndexedDB;
  
  
   namespace WebApplication
  {
  public class Startup
  {
      public void ConfigureServices(IServiceCollection services)
      {
          services.AddIndexedDB(dbStore =&gt;
          {
              dbStore.DbName = &quot;TheFactory&quot;;
              dbStore.Version = 1;
  
              dbStore.Stores.Add(new StoreSchema
              {
                  Name = &quot;Employees&quot;,
                  PrimaryKey = new IndexSpec { Name = &quot;id&quot;, KeyPath = &quot;id&quot;, Auto = true },
                  Indexes = new List&lt;IndexSpec&gt;
                  {
                      new IndexSpec{Name=&quot;firstName&quot;, KeyPath = &quot;firstName&quot;, Auto=false},
                      new IndexSpec{Name=&quot;lastName&quot;, KeyPath = &quot;lastName&quot;, Auto=false}
  
                  }
              });
              dbStore.Stores.Add(new StoreSchema
              {
                  Name = &quot;Outbox&quot;,
                  PrimaryKey = new IndexSpec { Auto = true }
              });
          });
      }
  //error here 
      public void Configure(IComponentsApplicationBuilder app)
      {
          app.AddComponent&lt;App&gt;(&quot;app&quot;);
      }
  }
   }
  </code></pre>
  <blockquote>
  <p>Error CS1061  'WebAssemblyHost' does not contain a definition for 'Run' and no accessible extension method 'Run' accepting a first argument of type 'WebAssemblyHost' could be found (are you missing a using directive or an assembly reference?)</p>
  </blockquote>
  <blockquote>
  <p>Error CS0103  The name 'BlazorWebAssemblyHost' does not exist in the current context</p>
  </blockquote>
  <p><strong>Program.cs</strong></p>
  <pre><code>using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
  using Microsoft.Extensions.Configuration;
  using Microsoft.Extensions.DependencyInjection;
  using Microsoft.Extensions.Logging;
  using System;
  using System.Collections.Generic;
  using System.Net.Http;
  using System.Text;
  using System.Threading.Tasks;
  using TG.Blazor.IndexedDB;
  
  
   namespace WebApplication
  {
  public class Program
  {
      public static async Task Main(string[] args)
      {
          var builder = WebAssemblyHostBuilder.CreateDefault(args);
          builder.RootComponents.Add&lt;App&gt;(&quot;#app&quot;);
  
          builder.Services.AddScoped(sp =&gt; new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
  
          await builder.Build().RunAsync();
         
          // error at Run()
          CreateHostBuilder(args).Build().Run();
      }
      public static WebAssemblyHostBuilder CreateHostBuilder(string[] args) =&gt;
          //error at BlazorWebAssemblyHost
         BlazorWebAssemblyHost.CreateDefaultBuilder()
             .UseBlazorStartup&lt;Startup&gt;();
  }
  }
  </code></pre>
  <p><strong>What I have tried:</strong></p>
  <p><a href="https://github.com/wtulloch/Blazor.IndexedDB" rel="nofollow noreferrer">Tg.Blazor.IndexedDB</a></p>
  <p><a href="https://stackoverflow.com/questions/60139801/missing-startup-cs-program-cs-net-core-razor">Missing startup.cs program.cs .Net Core Razor</a></p>