In the solution I have a console app (MyApp) which executes a method from another project (MyProject). In MyProject I have a folder with images. How can refer to an image from the folder with e.g. Image.FromFile()?
Methods like Directory.GetCurrentDirectory() will return the path of the MyApp not MyProject Am I missing something obvious?
Image.pngin the directoryFolder\Subfolder\(relative to the executable), you could do:Bitmap image = Image.FromFile(@"Folder\Subfolder\Image.png");MyApp.MyMethod();?