Try this
public void SerializeToXML(YourClass yourObj)
{
if (!File.Exists("C:\\Info.xml"))
File.Create("C:\\Info.xml");
XmlSerializer serializer = new XmlSerializer(typeof(YourClass));
System.IO.TextWriter textWriter = new StreamWriter("C:\\Info.xml");
serializer.Serialize(textWriter, yourObj);
textWriter.Close();
}
This would save "Info.xml" to your C:, neither in debug nor in release. (It would also create file if doesn't already exists).
Check out this link as well, it might help.