Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试获取特定 xbox 目录中所有文件的列表,如下所示,但是我得到一个“System.NotSupportedException” - 附加信息:不支持给定路径的格式。
var path = @"XE:\MyDirectory"; var files = Directory.GetFiles(path);
有谁知道解决方法?谢谢
XNA 框架中没有内置任何内容允许您执行此操作。要获取文件名,您不能使用StorageContainer 类的GetFileNames 方法吗?