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.
public Image AddImage(string fileName);
I'm using following library for generating pdf documents - https://www.nuget.org/packages/PDFsharp-MigraDoc-gdi/1.50.5147/
The image is located in class library project which is linked to WPF project.
Image has following settings in visual studio.
But after install, image does not appear in instalation location.
If it would appear I would use following code for get path of image.
string path = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location); \\+image name
What am I doing wrong?
Should I use another approach?