title: SharePoint: register css file out of language specific folder
body: <p>My css file is in <code>_layouts/MyProject/css/styles.css</code> and I need to register it from code behind. For this I should use <code>CssRegistration.Register</code> method:</p>
  
  <pre class="lang-cs prettyprint-override"><code>CssRegistration.Register("MyProject/css/styles.css");
  </code></pre>
  
  <p>But you will get this exception:</p>
  
  <blockquote>
    <p>Cannot make a cache safe URL for "1033/styles/MyProject/css/styles.css", file not found. Please verify that the file exists under the layouts directory.</p>
  </blockquote>
  
  <p>because SharePoint expect the css file in language specific folder e.g. for English <code>1033/styles</code>.</p>
  
  <p><em>Seems there is no parameter to turn this behavior off!</em></p>
  
  <p>On the other hand very similar task, registration of the javascript file, supports such requirement, see the third parameter <code>localizable</code>:</p>
  
  <pre class="lang-cs prettyprint-override"><code>ScriptLink.Register(Page, "MyProject/js/script.js", false);
  </code></pre>
  
  <p>Why the 2 classes for logically the same thing has so different interface? Is there any way how to register css out of the language specific folder? Or the only way is to distribute the same css file to those LCID folders?</p>