I am writing the necessary business logic in C# methods by using class library in .net. In each class of class library I am writing single method which servers the specific purpose. My project folder containing the class library is stored on F: drive. I have added one folder named XML to class library & added the XML file in that. Now how should I give the application path in C# & then use that path for giving path to the XML file ? Can you please provide me the code or any link through which I can resolve the above issue ? Is there any other way (different from above way) in which we can give the path of the XML file dynamically ?
Share
AppDomain.CurrentDomain.BaseDirectory