title: Embed Icons into WPF Application as Resource
body: <p>I am trying to embed an icon into my my WPF application so that I can pull it out for use as an icon in the Windows 7 JumpList using the following code:</p>
  
  <pre><code>newScene.IconResourcePath = System.Reflection.Assembly.GetEntryAssembly().Location;
  newScene.IconResourceIndex = 0;
  </code></pre>
  
  <p>I've gotten it to work using the following method: <a href="http://dennisdel.com/?p=38" rel="noreferrer">http://dennisdel.com/?p=38</a></p>
  
  <p>However, it doesn't seem like the best approach and it seems like there should be an easier way to embed an icon resource into my application while still leaving the "<strong>Icon and Manifest</strong>" option checked in the Application properties for my program.</p>
  
  <p>I've tried numerous methods including setting the icon build action as a resource and an embedded resource, but every time I open my .exe in a resource editor, the icon does not appear.</p>
  
  <p>Any suggestions?</p>