'Xamarin.Build.Download.targets - invalid Id
I cannot build the project after adding Xamarin.Firebase.Functions nuget (v120.0.0) . The error message is:
Xamarin.Build.Download.targets(3,3): Error XBD020: Invalid item ID firebaseappcheckinterop-16.0.0-beta01
What can it be? I already tried the usual things like deleting the bin/obj folders, rebuilding, restarting, installing different versions of Xamarin.Build.Download. No idea where to even start investigating this issue.
Solution 1:[1]
I believe this is happening due to the Xamarin.Build.Download package doing some aggressive package id format checking. It doesn't like that -beta01
postfix.
More details at the issue I opened on GitHub: https://github.com/xamarin/XamarinComponents/issues/1293
For an immediate solution, I suggest either:
- Downgrade to a version of Xamarin.Firebase.Functions that does not include a preview package as a transitive dependency
- Fork the XamarinComponents repo and remove or modify the id check (as detailed in the above linked github issue). Ideally this would be a band-aid fix until a newer version of Xamarin.Build.Download allows for this situation or newer a version of Xamarin.Firebase.Functions doesn't depend on a preview dependency.
Solution 2:[2]
I am facing same issue with the -beta01
suffix, so I downgraded Xamarin.Firebase.Functions to 119.2.0 in order to use the package, which works.
I wonder why Google puts experimental feature dependencies in stable package...
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Adam Essenmacher |
Solution 2 | StarChick971 |