docs-maui icon indicating copy to clipboard operation
docs-maui copied to clipboard

File system should cover file paths as well

Open dotMorten opened this issue 11 months ago • 0 comments

Type of issue

Missing information

Description

Often you want to deploy data with your app in the Raw folder. On Windows and iOS you can access these directly, but the path to the app install folder is not covered how to get, and on Android it isn't mentioned you can't get the direct path. So on Android you'd need to copy the assets out, whereas on iOS and Windows you only need to do this if you're planning on editing those files.

I think the doc should more explicitly cover this if you're putting data in the Raw folder. For instance on Windows it threw me off that the data was in the [appinstall]\Resources\Raw folder but was dumped right in the root folder. Please add some more indepth information about how to work with MauiAsset files directly, and platform differences here.

Page URL

https://learn.microsoft.com/en-us/dotnet/maui/platform-integration/storage/file-system-helpers?view=net-maui-8.0&tabs=windows

Content source URL

https://github.com/dotnet/docs-maui/blob/main/docs/platform-integration/storage/file-system-helpers.md

Document Version Independent Id

5b7e12aa-3c09-0f82-2fa2-a39c2c8065d8

Article author

@davidbritch

Metadata

  • ID: 5b7e12aa-3c09-0f82-2fa2-a39c2c8065d8
  • Service: dotnet-mobile
  • Sub-service: dotnet-maui

dotMorten avatar Mar 02 '24 19:03 dotMorten