C# 在windows phone 8.1应用程序中使用创建和访问文件夹

C# 在windows phone 8.1应用程序中使用创建和访问文件夹,c#,windows-phone-8.1,windows-phone,directory,C#,Windows Phone 8.1,Windows Phone,Directory,有人能帮我创建和访问应用程序中的文件夹吗(在我们拥有资产的同一位置,html文件夹)。我的要求是下载该文件夹中的文件,然后访问它 我使用了: StorageFolder destinationFolder = await Package.Current.InstalledLocation.GetFolderAsync("Assets"); StorageFile localFile = await destinationFolder.CreateFileAsync(localFileName,

有人能帮我创建和访问应用程序中的文件夹吗(在我们拥有资产的同一位置,html文件夹)。我的要求是下载该文件夹中的文件,然后访问它

我使用了:

StorageFolder destinationFolder = await Package.Current.InstalledLocation.GetFolderAsync("Assets");
StorageFile localFile = await destinationFolder.CreateFileAsync(localFileName, CreationCollisionOption.ReplaceExisting);

当我选中它时,显示路径为:
资产文件夹路径:C:\Data\SharedData\PhoneTools\AppxLayouts\785bb4a5-5b27-4720-918e-7ceaeeb58c52VS.Debug..

如果保存的文件不直接供最终用户使用,则应使用应用程序本地文件夹。如果数据量很少,那么也可以使用LocalSettings。了解更多可用的存储选项和访问过程