I don't know when it became necessary, but as I'm posting this (in May 2017), it is necessary. I placed mine in the same directory that my Android .csproj
file was located. I then added it to the project and made sure that Xamarin.GooglePlayServices.Base.targets
was in my .csproj
. I read that rebuilding would be sufficient for making the proper build action to appear, but building and restarting XS is what did it for me. The final result in my .csproj
was this:
<ItemGroup>
<GoogleServicesJson Include="google-services.json" />
</ItemGroup>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…