Redth / ResizetizerNT

Add SVG's and PNG's to your shared Xamarin Project
MIT License
318 stars 31 forks source link

[BUG] Release build doesn't show images. Debug builds do. #67

Open Jakar510 opened 3 years ago

Jakar510 commented 3 years ago

I cannot get images to show up when in a Release build. They do show up in Debug builds though. No changes other than the build type in Visual Studio 2019 v16.9.4

bazg177 commented 3 years ago

I'm noticing this also but it's about 50 / 50 for me. Some release builds include the images and others don't. Works every time for debug. No idea what is going on.

Microsoft Visual Studio Community 2019 Version 16.9.4 VisualStudio.16.Release/16.9.4+31205.134 Microsoft .NET Framework Version 4.8.04084

Edit: The issue here - https://github.com/Redth/ResizetizerNT/issues/20 sounds familiar, will try the double re-build before publishing

Jakar510 commented 3 years ago

@bazg177

Figured it out... for whatever reason, the names MUST be lowercase in order for android to see them. I don't know why this change was done, but it's exceedingly annoying.

It works regardless of case on debug builds, but only lowercase on release builds. It doesn't make sense.

bazg177 commented 3 years ago

@Jakar510 thanks for the update, mine were always lowercase but still I often get a build with no images.

Jakar510 commented 3 years ago

@bazg177 I did end up removing ResizetizerNT because of this issue; so its works without it and lowercase

bazg177 commented 3 years ago

My issue seems to be resolved by re-building twice for release builds, so I'll stick with that for now

mrengineer7777 commented 3 years ago

I fought with occasional missing images for 2 years with Resizetizer 0.2.0. After upgrading to 0.3.0. it gave helpful compile warnings on some of my image filenames. Apparently Android is very specific about image names: must be lowercase, no spaces or dashes. Once I switched "-" to "_" everything is working and I haven't had an image issue since. Try version 0.3.0.