Redth / ResizetizerNT

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

Error on Invalid Filenames #45

Closed Redth closed 3 years ago

Redth commented 3 years ago

Android resources are a bit of trouble since they have rules around their naming. We can automatically fix filenames during the conversion, but this could result in either naming collisions (ie: if you have cat.png and Cat.png and we sanitize the casing of the second for you, there's a collision - same with removing bad characters, etc). It's also confusing since if you have Cat.png you'd need to refer to your image as cat.png in your source code.

For now I think the best approach is to catch these poor naming practices early and error on them, forcing the user to correct them.