I have a console application which references a dll DomainLayer. In DomainLayer, one of the classes uses a image in DomainLayer to display.
Currently I am using the exact path to that image.
How can I use a relative path to this image so that it gets picked up by both tests and Console Application
This is how the hierarchy looks:
-DomainLayer --Resources ---Images -----Logo.png
-ConsoleApplication
-UnitTests
Here's the code:
workSheetIntroduction.Pictures.Add(5,1, @"C:\Users\Charu\Documents\Visual Studio 2013\Projects\AsmEpmReports\EmpReports.DomainLayer\Resources\Images\EpmLogo.png");