admin管理员组文章数量:1421702
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
本文标签: netiOS On Demand Resource with MAUIStack Overflow
版权声明:本文标题:.net - iOS On Demand Resource with MAUI - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745353794a2654933.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论