.Net 4.5 WPF desktop application, goal is to add an existing image to a pdfSharp doc. First step is getting the path to the image. My image is in an Images folder under my project. I've tried:
String myPath = string.Empty;
myPath = System.IO.Directory.GetCurrentDirectory();
myPath = myPath + "\\Images\\MyImage.png";
myPath ends up being:
C:\\Users\\My User Name\\Documents\\LocalProjects\\MyProject\\MyProject\\bin\\Debug\\Images\\MyImage.png
Then I check using File.Exists in an If statement. It fails.
Thanks!