Sebastian
Sebastian

Reputation: 279

iOS On Demand Resource with MAUI

With Asset packs for Android now in MAUI .NET 9, I wonder how to use the iOS equivalent of On Demand Resources in MAUI. I thought I could port over a few of my older Apps (which still use Xamarin.Forms) to MAUI but those app are using On Demand Resources for iOS to download ressources only when needed. However, neither the Build Action BundleResource nor the On Demand Resource Tags can be set in a MAUI project. So how is it supposed to be set to work for iOS and Android?

Upvotes: 1

Views: 63

Answers (1)

Sebastian
Sebastian

Reputation: 279

For those who look for a solution for this:

<MauiAsset Update="/Resources/Raw/*" AssetPack="installtime" ResourceTags="installtime" />

Seems like MauiAsset can have the ResourceTags attribute to generate the expected result. See: https://github.com/dotnet/maui/issues/27213#issuecomment-2600782979

Upvotes: 1

Related Questions