Context: I want to create a nuget for both Xamarin.Android and Xamarin.iOS. Aside the dll nuget, for the Android project I need a xml file to be copied to a certain location which for some strange reason.
Problem: The xml file gets copied for Xamarin.iOS, but not for the Xamarin.Android when nuget is installed and I don't understand why. I have the following line in the nuspec:
<files>
<file src="ProjectName.Droid\bin\Debug\ProjectName.Droid.dll" target="lib\MonoAndroid10\ProjectName.dll" />
<file src="ProjectName.Droid\bin\Debug\ProjectName.Droid.pdb" target="lib\MonoAndroid10\ProjectName.Droid.pdb" />
<file src="ProjectName.Droid\Resources\values\attrs.xml" target="content\MonoAndroid10\Resources\values\attrs.xml" />
<file src="ProjectName.Touch\bin\iPhoneSimulator\Debug\ProjectName.Touch.dll" target="lib\Xamarin.iOS1.0\XBottomSheet.Touch.dll" />
<file src="ProjectName.Touch\bin\iPhoneSimulator\Debug\ProjectName.Touch.pdb" target="lib\Xamarin.iOS1.0\ProjectName.Touch.pdb" />
The strange part is that if I remove the "MonoAndroid10" the file gets added to the iOS project, but not to the Android one. After I add it, neither of them sees it. I've also looked over how this is set: https://github.com/jamesmontemagno/SettingsPlugin/blob/master/nuget/Plugin.nuspec but I think it looks the same, yet it has different behaviour.
Any clue why is this happening? If something is not explained well, please ask and I'll come with details. It really bothers me that it keeps me stuck.