Recently I decided to update one of my projects to upgrade all the nuget packages to latest version. Surprisely, everything went just fine (even on Android). The only issue was with Xamarin.iOS.
I was unable to build the iOS project due to some error reported by Xamarin.Forms.GoogleMaps plugin,
/Users/theuser/.nuget/packages/xamarin.build.download/0.7.1/buildTransitive/Xamarin.Build.Download.targets(3,3): Error: Did not find reference matching RestoreAssemblyResources AssemblyName metadata 'Google.Maps, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
To fix the issue,
I downloaded the source code and did the following:
- Update all dependencies/packages in all the projects
- I still get same error, but went deeper on the solution and found that it was referencing the wrong Xamarin.Google.iOS.Maps package, was 3.5.0.1 and updated to 3.7.0.1
built the project and generate the nuget package following this https://docs.microsoft.com/en-us/nuget/create-packages/creating-a-package-dotnet-cli, manually added the repository, remove all nuget packages and restore and was able to make it work.
After that was able to build, had to add the local repository in the meanwhile, but is working 🙂
Latest posts by Starlin González (see all)
- Learning Swift - June 11, 2024
- How to read Bearer Tokens Claims in dotnetcore - August 23, 2023
- Fetching emails with MailKit - October 31, 2020