Reputation: 34569
I'm in the process of retargeting my NuGet package for Xamarin.iOS (both classic + unified APIs) and Xamarin.Android. My question is, what would be the proper directory name to put the assembly under before publishing it? For example, right now I have:
portable-net45+win+wpa81
because my PCL targets .NET Framework 4.5, Windows 8 and Windows Phone 8.1. What do I add to this to make sure that my package can be installed on Xamarin platforms?
I found out the proper abbreviations after substantial digging through the NuGet documentation, but it doesn't mention Xamarin.
Upvotes: 2
Views: 142
Reputation: 34569
Well, looks like I answered my own question before I got to post it. The answer is
portable-net45+win+wpa81+MonoAndroid10+xamarinios10+MonoTouch10
For future reference: I remembered I didn't find the proper abbreviations out through the docs, but through my own ingenuity:
Make a new PCL that targets said platforms
nuget spec Foo.csproj
Retouch as needed
nuget pack Foo.csproj
Rename Foo.nupkg
to Foo.zip
Open zip file (or extract && open)
Proper name for directory is in lib folder (replace %2B with + as needed)
Hope that helps!
Upvotes: 1