Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xamarin Forms 5.0.0.2196 #79

Open
heltonspr opened this issue Oct 21, 2021 · 6 comments
Open

Xamarin Forms 5.0.0.2196 #79

heltonspr opened this issue Oct 21, 2021 · 6 comments

Comments

@heltonspr
Copy link

Hello,
after upgrading to xamarin forms Xamarin Forms 5.0.0.2196 and version 0.3.0, images are not loaded for IOS and Android. Downgrading the same project loads correctly.
There is some additional configuration to perform.
Thank you in advance.

@heltonspr
Copy link
Author

Steps to reproduce the problem:
1 - create a project in the previous version of xamarin forms.
2 - add the resizetizer.NT library
3 - add the "SharedImage" images
4 - compile and test the project. everything will be ok so far.
5 - update the resizetizer and xamarin.forms libraries
6 - clean the project
7 - compile and test the project. no images will be loaded

@Feroks
Copy link

Feroks commented Oct 21, 2021

Have you tried deleting bin and obj folders? It usually helps me.

@nll
Copy link

nll commented Oct 25, 2021

I can confirm that updating from 0.2.0 to 0.3.0 does break existing projects, and it does not seem related with the Xamarin.Forms version.
In my case it was not generating the native bitmap files after updating, even after clean / delete bin/obj folders.

I did manage to make it work by trial and error, by:

  1. adding the dependency to the native projects (Android / iOS) - <PackageReference Include="Resizetizer.NT" Version="0.3.0" />
  2. renaming the files to lowercase (as I got an error and Link="name.png" didn't work)

@jor1196
Copy link

jor1196 commented Oct 26, 2021

The same thing happens to me, I have the 2012 version of XF and they do not load the images

@biapar
Copy link

biapar commented Nov 4, 2021

I've a msbuild error with latest Xamarin Forms 5.0.0.2196 and 0.3.0 version.
All works with 0.2.0 version.

@tmijieux
Copy link

tmijieux commented Dec 1, 2021

I've a msbuild error with latest Xamarin Forms 5.0.0.2196 and 0.3.0 version. All works with 0.2.0 version.

I've had the same problem (0.2.0 working and 0.3.0 not working) until I updated to visual studio 2022 on my windows and updated to last version of visual studio for mac + installed jdk11 on the mac) when it suddenly became the opposite(0.2.0 stopped working and 0.3.0 started working so maybe it has an implicit dependency on some part of the toolchain), like @nll said you are probably supposed to put a PackageReference to the nuget in platform specific project as well since it probably do custom stuff for each project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants