title: Localizable WPF Application - UICulture settings lead to Resource problems
body: <p>I want to create aa localizable WPF Application. I've followed the instructions in the comments of the AssemblyInfo.cs file:</p>
  
  <pre><code>//In order to begin building localizable applications, set 
  //&lt;UICulture&gt;CultureYouAreCodingWith&lt;/UICulture&gt; in your .csproj file
  //inside a &lt;PropertyGroup&gt;.  For example, if you are using US english
  //in your source files, set the &lt;UICulture&gt; to en-US.  Then uncomment
  //the NeutralResourceLanguage attribute below.  Update the "en-US" in
  //the line below to match the UICulture setting in the project file.
  </code></pre>
  
  <p>After I've done this, my application isn't starting any more. I'm using a custom App class:</p>
  
  <pre><code>namespace Namespace
  {
      public partial class App : Application
      {
          [STAThread()]
          [SecurityPermission(SecurityAction.LinkDemand)]
          public static void Main()
          {
              var app = new App();
  
              app.InitializeComponent();
              app.Run();
          }
  
  
          [DebuggerNonUserCode()]
          public void InitializeComponent()
          {
              this.StartupUri = new Uri("MainWindow.xaml", UriKind.Relative);
          }
      }
  }
  </code></pre>
  
  <p> </p>
  
  <pre><code>&lt;ns:App
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:ns="clr-namespace:Namespace"&gt;
  
  &lt;/ns:App&gt;
  </code></pre>
  
  <p>Everything has worked fine before. I assume there's some kind of mismatch between the configured UICulture settings and that one specified for MainWindow.xaml, but I don't know how to fix it.</p>