title: Problem Reading Embedded Resource With ASP.NET Core 3.1 in Console App
body: <p>I'm failing at being able to read embedded resources in ASP.NET Core 3.1. Specifically, I'm following the example in the docs here:  </p>
  
  <p><a href="https://docs.microsoft.com/en-us/aspnet/core/fundamentals/file-providers?view=aspnetcore-3.1" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/aspnet/core/fundamentals/file-providers?view=aspnetcore-3.1</a></p>
  
  <p>I've updated my csproj file to the following adding the <code>&lt;GenerateEmbeddedFilesManifest&gt;true&lt;/GenerateEmbeddedFilesManifest&gt;</code></p>
  
  <pre><code>&lt;Project Sdk="Microsoft.NET.Sdk"&gt;
  
    &lt;PropertyGroup&gt;
      &lt;OutputType&gt;Exe&lt;/OutputType&gt;
      &lt;TargetFramework&gt;netcoreapp3.1&lt;/TargetFramework&gt;
      &lt;GenerateEmbeddedFilesManifest&gt;true&lt;/GenerateEmbeddedFilesManifest&gt;
    &lt;/PropertyGroup&gt;
  
  
    &lt;ItemGroup&gt;
      &lt;EmbeddedResource Include="Data\sessions.json" /&gt;
      &lt;EmbeddedResource Include="Data\speakers.json" /&gt;
    &lt;/ItemGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;ProjectReference Include="..\EFLib\EFLib.csproj" /&gt;
      &lt;ProjectReference Include="..\RepositoryLib\RepositoryLib.csproj" /&gt;
      &lt;ProjectReference Include="..\SeedDataLib\SeedDataLib.csproj" /&gt;
    &lt;/ItemGroup&gt;
  
  &lt;/Project&gt;
  </code></pre>
  
  <p>I have console app as follows and I get the error below when I run it.</p>
  
  <pre><code>class Program
  {
      static async Task Main(string[] args)
      {
          Console.WriteLine("Hello World!");
  
          var manifestEmbeddedProvider =
              new ManifestEmbeddedFileProvider(typeof(Program).Assembly); // ERROR HERE
  </code></pre>
  
  <p>{"Could not load the embedded file manifest 'Microsoft.Extensions.FileProviders.Embedded.Manifest.xml' for assembly 'TestConsoleApp'."}</p>
  
  <p>I'm basically trying to do what I use to do in ASP.NET Core 2 which was this and it's not working.</p>
  
  <pre><code>var assembly = Assembly.GetEntryAssembly();
          string[] resources = assembly.GetManifestResourceNames(); // debugging purposes only to get list of embedded resources
  </code></pre>