UWP save file in Documents and Pictures Library
问题 I'm trying to make a UWP app which can export a file saved in his own storage into the document library. In Package.appxmanifest I've inserted the following lines: <uap:Capability Name="picturesLibrary" /> <uap:Capability Name="documentsLibrary" /> The code to get the path is this: StorageFolder storageFolder = await KnownFolders.GetFolderForUserAsync(null /* current user */, KnownFolderId.DocumentsLibrary); string path = storageFolder.Path + "\\" + fileName; The code to save the file is this