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?
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?
Share Improve this question asked Jan 17 at 16:56 SebastianSebastian 2793 silver badges18 bronze badges 1- Thanks for your submission on GitHub, [Bug] iOS: On-Demand Resource Tag not available to be set. We recommend you follow up this issue and get the latest updates. – Felix Shen Commented Jan 20 at 7:53
1 Answer
Reset to default 1For 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/dotnet/maui/issues/27213#issuecomment-2600782979