Tuesday, 26 March 2019

How does one create a project to create a Nuget package for Xamarin Forms supporting iOS, Android, and UWP?

It feels like no one in the world has done this. I can't find any tutorials or help on how to create this. What I'm trying to do is create my own plugin, let's say to add notifications to Xamarin forms, that will work on Android, iOS, and UWP. Every mention of this I see mentions to create a multiplatform library but this is only available for VS for Mac and does NOT include UWP. VS2017 does not include a multiplatform library template. I want it to work like all the other xamarin plugins where you download it from nuget into all your projects and you have access to platform implementations and shared code.

I see other questions on stackoverflow that ask this but they are not answered or have links that are dead and don't work on VS2017.

How can I create a xamarin forms library that can be shared between multiple projects? How can I make this into a nuget package so it is one brainless install and it just works? The more detailed the better as it will help everyone that I saw googling this issue and found no answer.

Remember this is NOT for visual studio Mac like the microsoft tutorials show, but for VS 2017 community edition with the latest updates.

Edit 1:

Just to add to some of the comments below, I also tried this plugin that James created and that even doesn't work the way it does in his youtube video: https://www.youtube.com/watch?v=MSwH8NrtVCk&feature=youtu.be

The resulting project doesn't have any folders.



from How does one create a project to create a Nuget package for Xamarin Forms supporting iOS, Android, and UWP?

No comments:

Post a Comment