title: Resource Loading works in SharpDevelop but not when Compiled Manually
body: <p>I'm making a game engine and wondering about how to load resources.</p>
  
  <p>I'm currently using this code for it.</p>
  
  <pre><code>public static Stream GetResourceStream(string name) {
      string asmname = Path.GetFileNameWithoutExtension(Assembly.GetEntryAssembly().Location).Replace('\\', '.').Replace('/', '.');
      return Assembly.GetEntryAssembly().GetManifestResourceStream(asmname + "." + name.Replace('\\', '.').Replace('/', '.'));
  }
  </code></pre>
  
  <p>And using it as</p>
  
  <pre><code>Image img = Image.FromStream(GetResourceStream("Resources/image.png"));
  </code></pre>
  
  <p>It is working in the current form in SharpDevelop but If I compile the source from command-line like</p>
  
  <pre><code>csc.exe /t:winexe /res:Resources/image.png Game.cs
  </code></pre>
  
  <p>It is returning null stream. Having listed the resources with</p>
  
  <pre><code>foreach (var name in typeof(this).Assembly.GetManifestResourceNames())
  {
      MessageBox.Show(name);
  }
  </code></pre>
  
  <p>It's listing image with simple name, no package name or folder name.</p>
  
  <p>What is the best way to load resources in the entry assembly? (I'll have a separate GameEngine.dll)</p>
  
  <p>Thanks.</p>