FreshMvvm icon indicating copy to clipboard operation
FreshMvvm copied to clipboard

Build error with updated packages

Open Surfrat opened this issue 6 years ago • 12 comments

Update: see my last post for solution.

Hi,

I updated all nuget packages and have the following problems:

  1. When I build I have the following UWP error:

image

  1. If I unload the UWP project I can build but Android fails with this:

image

iOS runs fine.

Windows: 1903 (18362.295) VS 2019 v16.2.3

I have searched for solutions to the above problems with no luck. Attached is the updated project.

Can you help in getting this to run?

Thanks. FreshMvvm-master-updated.zip

Surfrat avatar Aug 29 '19 10:08 Surfrat

the error that you have seems to be with the solution properties. make sure the android project is deployable.

libin85 avatar Sep 02 '19 13:09 libin85

Thanks for the reply. It is.... Please load up my test project to see what the issues are. I have already spent a couple of hours on this.

Surfrat avatar Sep 02 '19 13:09 Surfrat

@Surfrat : i will give it a try tonight if i get some time

libin85 avatar Sep 04 '19 00:09 libin85

i have exactrly the same probem in the first post....

romeop555 avatar Sep 07 '19 13:09 romeop555

@Surfrat @romeop555 : I have downloaded your project tried both android and ios and it works all good for me. UWP, I have not tested yet, will try that on my windows machine later. The only difficulty that I had was restoring the packages in visual studio. Once I restarted the Visual studio couple of times, that was fixed too.

libin85 avatar Sep 09 '19 05:09 libin85

Thank you for testing. I assume it was on a Mac. Please try the Android project on the Windows side as well.

Surfrat avatar Sep 09 '19 06:09 Surfrat

Yes, it was on Mac. I will test it on windows later today if i get some time

libin85 avatar Sep 09 '19 07:09 libin85

@Surfrat @romeop555 : i have tested the project on windows. Android works all good. For UWP, I did get the same error as you. The error sounded like the UWP project was not able to get the reference of FreshMvvm from FreshMvvmApp project . So i added the FeshMvvm project reference to the UWP project and it works as expected now. I do not know what exactly is the root cause of this. Will need to dig further into it

libin85 avatar Sep 09 '19 14:09 libin85

Thank you very much for looking at this. Could you please post your working Windows version of the project here so I can see the differences?

Also would you consider updating the source to reference updated libraries.?

Surfrat avatar Sep 10 '19 07:09 Surfrat

I would appreciate it if you could post your working project. Thanks

Surfrat avatar Sep 15 '19 13:09 Surfrat

It appears that @libin85 has left the building :)

The reason for my post is that as a new user, one of the first things you will do with this project, is update all the Nuget packages. I have been using FreshMVVM for about 2 years and my project is fully updated and has no issues.

I am a big fan of FreshMVVM and recently watched Michael Ridland on the Xamarin show. I am a little disappointed that FreshMVVM is not getting much attention here.

To help out any newcomers I have added a version that us fully updated and runs on all platforms. It would be nice if the source was updated as it still references Xamarin Forms 3.

Note that I removed the UI projects from the FreshMVVM project. Build the FreshMVVM project. Load theFreshMVVMApp project and build that. Hopefully all the UI projects will run.

Thanks

Mark. FreshMvvm-master-updated-Working.zip

Surfrat avatar Sep 17 '19 09:09 Surfrat

@Surfrat Thanks for your concern. I agree that it's good to ensure that running FreshMvvm from the code base is a smooth experience. Some of these issue will be easy to resolve, I will take a look.

rid00z avatar Sep 18 '19 02:09 rid00z