dotnet / dotnet/docs-maui

Add platform-specific resources to single-project

Open
#870 0 comments 0 reactions 0 assignees View on GitHub
doc-idea Pri3
Dominant language
No language data
Stars
282
Forks
265
Avg merge
2d 2h
Merged PRs (30d)
19

Description

There needs to be docs on accessing iOS/Android (and Win?) resources from platform-specific code.

For Android, files should be added to the Platforms\Android\Resources\raw folder, rather than the Resources\Assets folder. Adding to the later folder doesn't generate the required resource ID.

The root issue is that `AndroidAsset` is for assets, not for raw resources.

https://github.com/dotnet/maui/issues/9877 (and https://github.com/dotnet/maui/issues/9602)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.