最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

.net - iOS On Demand Resource with MAUI - Stack Overflow

programmeradmin1浏览0评论

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
Add a comment  | 

1 Answer 1

Reset to default 1

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/dotnet/maui/issues/27213#issuecomment-2600782979

发布评论

评论列表(0)

  1. 暂无评论