Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@vatsashah45
Copy link
Contributor

GitHub Issue: closes https://github.com/unoplatform/uno.ai-private/issues/406

PR Type:

  • πŸ“š Documentation content changes

What is the current behavior? πŸ€”

What is the new behavior? πŸš€

PR Checklist βœ…

Please check if your PR fulfills the following requirements:

Copilot AI review requested due to automatic review settings December 12, 2025 16:08
@vatsashah45 vatsashah45 self-assigned this Dec 12, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds documentation guidance for loading JSON files using the StorageFile API in the Uno Platform. It addresses a common developer scenario by providing clear instructions on the preferred cross-platform approach for loading JSON data files packaged with applications. The documentation emphasizes using StorageFile.GetFileFromApplicationUriAsync over System.IO.File APIs for better compatibility across all Uno Platform targets.

Key Changes

  • Added a new "Loading JSON data files" subsection with a complete code example demonstrating the recommended pattern
  • Included explanatory notes on why the StorageFile API is preferred, covering platform-specific behaviors (WebAssembly, mobile, desktop)
  • Provided project setup instructions for marking JSON files as Content

@unodevops
Copy link
Contributor

πŸ€– Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-22119/docs/index.html

var fileExists = await StorageFileHelper.ExistsInPackage("Assets/Fonts/uno-fluentui-assets.ttf");
```

### Loading JSON data files
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure we should add this here. Actually I'm not sure how we can effectively deal with this one

I think it instead my be best to think of adding to the docs mcp init rules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants