title: Can't find SharedResource using Localization in Razor Pages
body: <p>I've followed a pattern used in Razor Views, but when using Razor Pages it doesn't find the resource. Do I need to implement it differently?</p>
  
  <p><strong>Startup.cs</strong>:</p>
  
  <pre><code>public void ConfigureServices(IServiceCollection services)
  {
      services.AddLocalization(o =&gt; {
          o.ResourcesPath = "Resources";
      });
  
      services.AddMvc()
          .AddViewLocalization(LanguageViewLocationExpanderFormat.Suffix, options =&gt; options.ResourcesPath = "Resources")
          .AddDataAnnotationsLocalization();
  
  }
  
  public void Configure(IApplicationBuilder app, IHostingEnvironment env)
  {
      app.UseStaticFiles();
  
      app.UseRequestLocalization(new RequestLocalizationOptions {
          DefaultRequestCulture = new RequestCulture("no"),
          SupportedCultures = this.SupportedCultures,
          SupportedUICultures = this.SupportedCultures
      });
  
      app.UseMvc();
  }
  
  private IList&lt;CultureInfo&gt; SupportedCultures
  {
      get
      {
          return new List&lt;CultureInfo&gt;
          {
              new CultureInfo("no"),
              new CultureInfo("en")
          };
      }
  }
  </code></pre>
  
  <p><strong>_ViewImports.cshtml</strong>:</p>
  
  <pre><code>@using FFU.Home.Galaxy;
  @using Microsoft.AspNetCore.Mvc.Localization;
  
  @namespace FFU.Home.Galaxy.Pages
  
  @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
  @addTagHelper *, LC.Tools.Utility.TagHelpers
  
  @inject IViewLocalizer _local
  @inject IHtmlLocalizer&lt;SharedResources&gt; _shared
  </code></pre>
  
  <p><strong>_Layout.cshtml</strong>:</p>
  
  <pre><code>&lt;title&gt;@_shared.GetString("Title") - Friends For Understanding&lt;/title&gt;
  </code></pre>
  
  <p>_shared.GetString("Title").ResourceNotFound is True</p>
  
  <p>the folder Resources contains two files named <em>SharedResources.en.resx</em> and <em>SharedResources.no.resx</em></p>