How do I create a NuGet package for my controls?

Hey everyone, I'm planning to create some packages for common stuff I use in my projects, like services, converters, MVVM classes and controls/components. I didn't search about how to create packages for my converters and MVVM classes for example, because I think it will be fine, since it doesn't require platform specific code.

The problem is I have no idea of how to create a NuGet package that requires platform specific code. I have some controls, like an Entry which I add some properties, like Border for example, and it has a custom renderer on both iOS and Android projects. What I want to do is create a single package which will contain all my controls, but I don't know how to do it.

I'm googling about it for hours, but didn't found anything useful. I found James Montemagno's package, but it just help for plugins, not controls. Also read somewhere about Nugetizer 3000, but didn't test it yet. Thanks for the help.

Answers

  • JohnHJohnH GBMember ✭✭✭✭✭

    @DCunha said:
    Hey everyone, I'm planning to create some packages for common stuff I use in my projects, like services, converters, MVVM classes and controls/components. I didn't search about how to create packages for my converters and MVVM classes for example, because I think it will be fine, since it doesn't require platform specific code.

    The problem is I have no idea of how to create a NuGet package that requires platform specific code. I have some controls, like an Entry which I add some properties, like Border for example, and it has a custom renderer on both iOS and Android projects. What I want to do is create a single package which will contain all my controls, but I don't know how to do it.

    I'm googling about it for hours, but didn't found anything useful. I found James Montemagno's package, but it just help for plugins, not controls. Also read somewhere about Nugetizer 3000, but didn't test it yet. Thanks for the help.

    Nugetizer 3000 is a good starting point, it uses a new project type called .nuprog. It is what I use to package all our in-house nuget packages.

Sign In or Register to comment.