Xamarin build action warning XA0101
It's a warning that came with the new Xamarin Update.If you want to get rid of it, change the Build Action for AndroidManifest.xml to "none".
" New projects created from templates show ignorable build warning: "@(Content) build action is not supported ... AndroidManifest.xml". Workaround: change the build action of "AndroidManifest.xml" to "none". Now fixed in the Alpha and Beta channels. "
-- by Stable release: XamarinVS 3.11.445, new features and bug fixes (Brendan Zagaeski)
Refer : Bug 28210 - Bugzilla
My case was similar but for a slightly different reason. I was using msbuild /t:pack
to package my Android package into a NuGet package (NUPKG) and wanted to include some static content in the generated NUPKG.
I had this, which worked in most projects, but not the Android ones:
<ItemGroup> <Content Include="..\THIRD-PARTY-NOTICES.txt" Link="THIRD-PARTY-NOTICES.txt"> <Pack>true</Pack> <PackagePath></PackagePath> </Content> </ItemGroup>
But based on other answers in this question, I updated <Content ...>
to <None ...>
:
<ItemGroup> <None Include="..\THIRD-PARTY-NOTICES.txt" Link="THIRD-PARTY-NOTICES.txt"> <Pack>true</Pack> <PackagePath></PackagePath> </None> </ItemGroup>
And this still works just fine in all my projects (class lib, Android, iOS, others). The txt file got correctly picked up and embedded in the generated NUPKG.