Redth / ResizetizerNT

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

Xamarin update #59

Closed Alex-451 closed 3 years ago

Alex-451 commented 3 years ago

So i updated the Xamarin.Forms nuget from 5.0.0.1931 to 5.0.0.2012 which resulted in a bunch of svgs not loading correctly anymore (Just shows nothing). Do you guys know why that happens and if i can do anything to fix that?

Repo: https://github.com/AlexGipp/Nindo.Mobile/tree/feature/Viral (Afte downgrading the nuget to 5.0.0.1931 it worked again)

onlyargon commented 3 years ago

Same issue here. After update to the Xamarin forms 5.0.0.2012 png files are not loading 😭

themronion commented 3 years ago

@onlyargon @AlexGipp rename your files so that they match the android resources naming conventions. So for example if u have a file someFile.svg rename it to some_file.svg

Alex-451 commented 3 years ago

@themronion thanks for the suggestion but how and why would that solve the problem, and why does it still work with the old version?

themronion commented 3 years ago

Just try it. It will solve your problem

bmacombe commented 3 years ago

See #44

onlyargon commented 3 years ago

@onlyargon @AlexGipp rename your files so that they match the android resources naming conventions. So for example if u have a file someFile.svg rename it to some_file.svg

This is working. Thanks.

Alex-451 commented 3 years ago

Thanks for your help, I will check if that solves my problem 👍

Alex-451 commented 3 years ago

Hey, after I renamed my files and rebuilt my solution I got the error: One or more errors occurred. every time I started to run my app. After restarting Visual Studio it worked again, I know that this is probably a Visual Studio problem but I'm just gonna leave this here anyway in case anyone else comes across the same issue.

themronion commented 3 years ago

@AlexGipp it is a known issue also: https://github.com/Redth/ResizetizerNT/issues/35