So I have a solution witch has two different projects(for example one of them is admin and one of them is presentation). it means I have two .exe files. My current project is for example presentation but I want the directory of the other one(admin)
AppDomain.CurrentDomain.BaseDirectory
this code gives me the current project directory. one way is to back(./) and reach to the other project but it will be too much hard code. Is there any better ways to do it