Bug 53402 - GoogleServicesJson Build action is missing from dropdown
Summary: GoogleServicesJson Build action is missing from dropdown
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: 4.2.0 (C8)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Jon Dick
Depends on:
Reported: 2017-03-16 16:30 UTC by Jeremy Kolb
Modified: 2017-03-20 19:12 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

logs (1.67 KB, application/x-zip-compressed)
2017-03-20 17:07 UTC, Jeremy Kolb

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:

Description Jeremy Kolb 2017-03-16 16:30:00 UTC
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" />
Comment 1 Jon Dick 2017-03-20 15:35:38 UTC

Which version of Xamarin Google Play Services - Basement do you have installed, and which version of Visual Studio are you using?
Comment 2 Jeremy Kolb 2017-03-20 17:06:29 UTC

Xamarin.GooglePlayServices.Basement 42.1001.0

Note that all of the Xamarin.GooglePlayServices and Xamarin.Firebase packages show up with yellow caution symbols under project References.
Comment 3 Jeremy Kolb 2017-03-20 17:07:10 UTC
Created attachment 20468 [details]
Comment 4 Jon Dick 2017-03-20 18:08:22 UTC
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).
Comment 5 Jeremy Kolb 2017-03-20 18:35:27 UTC
Yes when I hit this issue I restarted visual studio multiple times.
Comment 6 Jon Dick 2017-03-20 18:36:20 UTC
Can you attach your .csproj in question?
Comment 7 Jeremy Kolb 2017-03-20 18:57:18 UTC
Bugzilla will not allow me to attach the project as private.
Comment 8 Jon Dick 2017-03-20 19:00:43 UTC
Ok, how about this... what <Import ... /> lines do you see in your .csproj, specifically with .targets files and do those files actually exist?
Comment 9 Jeremy Kolb 2017-03-20 19:11:27 UTC
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.
Comment 10 Jon Dick 2017-03-20 19:12:33 UTC
Going to close this for now.  If you find a way to reliably reproduce this please comment back and we can reopen.