I am Creating XML File for saving the credentials.
private void CreateCredentialFile()
{
string path = @"Assets\CredentialFile.xml";
XDocument doc = new XDocument(new XElement("ConferenceRooms"));
XElement newRoom = new XElement("ConferenceRoom",
new XElement("Email",SelectedConfRoom.EmailId),
new XElement("Password", SelectedConfRoom.Password)
);
doc.Element("ConferenceRooms").Add(newRoom);
doc.Save(path);
}
But If I clean the solution means this file still present in my output directory. I want to this file get removed while cleaning the solution. Is there anyway to remove this file while cleaning the solution?