title: Using ResourceManager
body: <p>I'm trying to use the ResourceManager in a C# class, but don't know what to substitute for the basename when creating a new instance of the ResourceManager class.</p>
  
  <p>I have a separate project that contains the resource files which is referenced by my project above named as the following:</p>
  
  <ul>
  <li>Resources.resx </li>
  <li>Resources.es-ES.resx </li>
  </ul>
  
  <p>If I have a code snippet as follows, what should I substitute for the basename when I want to use the English or Spanish version of the resources?</p>
  
  <pre><code>ResourceManager RM = new ResourceManager(basename,Assembly.GetExecutingAssembly());
  </code></pre>
  
  <p>I tried the approach suggested by Tom, but am getting the infamous error</p>
  
  <blockquote>
    <p>Could not find any resources appropriate for the specified culture or the neutral culture.</p>
  </blockquote>
  
  <p>My solution has two projects where project YeagerTech is a web application and project YeagerTechResources contains all the resources. Project YeagerTech has a reference to YeagerTechResources. </p>
  
  <p>I have the following syntax when creating my Resource Manager: </p>
  
  <pre><code>ResourceManager RM = new ResourceManager("YeagerTechResources.Resources",
      Assembly.GetExecutingAssembly());
  </code></pre>
  
  <p>Obviously, it's incorrect. </p>
  
  <p>The resource files in the YeagerTechResources project have their BuildAction set to Embedded Resource. </p>
  
  <p>The name of my resource files are: Resources.resx and Resources.es-ES.resx. </p>
  
  <p>If someone can simply tell me the exact syntax to use based on my project and resource file names when instantiating the resource manager, I would greatly appreciate it...</p>
  
  <p>I've done everything I can think of to resolve this and can't....</p>
  
  <p>This is my last attempt to resolve it here...</p>
  
  <pre><code>ResourceManager RM = new ResourceManager("YeagerTechResources.Resources", Assembly.GetExecutingAssembly());
  
  sb.Append(RM.GetString("RegisterThanks"));
  </code></pre>
  
  <p>I am getting the following error after executing the code above:</p>
  
  <blockquote>
    <p>Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "YeagerTechResources.Resources.resources" was correctly embedded or linked into assembly "YeagerTech" at compile time, or that all the satellite assemblies required are loadable and fully signed.</p>
  </blockquote>
  
  <p>I am able to use the resources in the HTML markup with absolutely no issues, but when coming to the C# code in the Controller, I keep on getting the above error.</p>
  
  <p>Any help for the exact syntax I need based on my projects would be greatly appreciated.</p>