title: path to image in deployed C# WPF app with ClickOnce
body: <p>I have problem with set correct file path to image in my project which is deployed with ClickOnce.
  The 3rd party library for generating pdf documents needs path of image as input for method.</p>
  <pre><code>public Image AddImage(string fileName);
  </code></pre>
  <p>I'm using following library for generating pdf documents - <a href="https://www.nuget.org/packages/PDFsharp-MigraDoc-gdi/1.50.5147/" rel="nofollow noreferrer">https://www.nuget.org/packages/PDFsharp-MigraDoc-gdi/1.50.5147/</a></p>
  <p>The image is located in class library project which is linked to WPF project.</p>
  <p>Image has following settings in visual studio.</p>
  <p><a href="https://i.stack.imgur.com/HZa7t.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HZa7t.png" alt="enter image description here" /></a></p>
  <p>But after install, image does not appear in instalation location.</p>
  <p>If it would appear I would use following code for get path of image.</p>
  <pre><code>string path = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location); \\+image name
  </code></pre>
  <p><strong>What am I doing wrong?</strong></p>
  <p><strong>Should I use another approach?</strong></p>