Search code examples
c#.netvb.netwinformsuser-controls

Distributing .Net controls


I have developed custom controls using Vb.Net. Now I want to distribute my controls for other developers to use them but the only option I know is to import the .dll file into controls in Visual Studio. Is there a way of easily distributing them such as making an installer and register all the controls into VS automatically?


Solution

  • I personally prefer using NuGet.org for distribution. It is available in VSCode, Visual Studio as part of standart package manager for solution

    You can generate deployment packages and deploy your assemblies to remote repositaries with public or optionally private acceess. To do so you have to ship you source code as a standalone package to one of the repositaries GitHub,GitLab, or Azure

    Uploading packages to NuGet package manager

    1. For component distribution you can use NuGet, MyGet, Visual Studio Marketplace
    2. For application distibution you can use ClickOnce deployment

    To do so, register account in GitHub, Google, or Microsoft, register on NuGet and upload generated by you CI/D pipline package manally, or as a part on continious deployment pipeline