我想创建一个xml文件.我知道如何使用linq to xml概念创建一个xml文件.但我想将该文件保存在我项目的bin文件夹中.怎么做.
XDocument changesetDB = new XDocument(
new XElement("changes",
new XElement("change",
new XAttribute("path", changedFile),
new XAttribute("changesetID", changesetID),
new XAttribute("JIRAID", issueID))));
Run Code Online (Sandbox Code Playgroud)
现在我想将它保存在bin文件夹中.是否可以这样做.谢谢,
string path = Path.GetDirectoryName(Application.ExecutablePath) ;
changesetDB .Save( Path.Combine( path , "data.xml"));
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3899 次 |
| 最近记录: |