How to read XML files without writing full path, so my code would work when copied to other computers. With visual studio I added 2 XML files to project (Windows Application) and don't know best way to read those files.
XElement element = XElement.Load("WH_Num.xml");
XElement element = XElement.Load(@" C:\Users\nandang\Desktop\GUI_SETUP\JUNE_15_SetUp\3\Application Files\WH_Num.xml");
That Both 2 code are working for my PC, But when i publish and install setup file in other computer it wont work. please any one suggest me best way to give a XML path and that path could be work for all other computer.
Thank You.