我想創建一個xml文件。我知道如何使用linq to xml概念創建一個xml文件。 但我想將該文件保存在我的項目的bin文件夾中。怎麼做。在c#中創建一個xml文檔並將該文件存儲到項目的bin文件夾中
XDocument changesetDB = new XDocument(
new XElement("changes",
new XElement("change",
new XAttribute("path", changedFile),
new XAttribute("changesetID", changesetID),
new XAttribute("JIRAID", issueID))));
現在我想將它保存在bin文件夾中。有沒有可能這樣做。 謝謝,
'XDocument.Save'? – carlosfigueira
是的,我也一樣認爲..但保存意味着它將保存文件? – Searcher
不要忘了標記答案如果你有你想要的信息... –