C#将xml文件从资源复制到磁盘

C#将xml文件从资源复制到磁盘,c#,C#,我尝试了File.writealBytes和其他一些方法,我只想将xml文件从资源复制到磁盘,只要找到它就行了 System.IO.File.Copy(fromPath, toPath, true) 这是假设您可以访问这两个文件路径

我尝试了
File.writealBytes
和其他一些方法,我只想将xml文件从资源复制到磁盘,只要找到它就行了

System.IO.File.Copy(fromPath, toPath, true)
这是假设您可以访问这两个文件路径