Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
I added a google-services.json file to my project but the build action of "GoogleServicesJson" is missing. I have to manually edit the csproj file to include the line:
<GoogleServicesJson Include="google-services.json" />
Which version of Xamarin Google Play Services - Basement do you have installed, and which version of Visual Studio are you using?
Note that all of the Xamarin.GooglePlayServices and Xamarin.Firebase packages show up with yellow caution symbols under project References.
Created attachment 20468 [details]
Have you tried reloading the project you installed the nuget packages into? It doesn't seem to always show up right after you install the nuget package (this seems to be an issue with the IDE since those build action types are declared in the .targets file that is referenced as part of the nuget package installed).
After I reload my project, I can't reproduce the missing "GoogleServicesJson" build action.
I do see the yellow caution symbols, but we've known about those and they shouldn't affect this particular use case (or your builds).
Yes when I hit this issue I restarted visual studio multiple times.
Can you attach your .csproj in question?
Bugzilla will not allow me to attach the project as private.
Ok, how about this... what <Import ... /> lines do you see in your .csproj, specifically with .targets files and do those files actually exist?
GoogleServicesJson shows up now but it definitely did not the other day so at this time I do not see the issue. Once corrected it goes away.
Going to close this for now. If you find a way to reliably reproduce this please comment back and we can reopen.