Create the NuGet package

After you have exported your Add-on and edited the .nuspec file, you need to generate a NuGet package out of it. You do that using the pack command of nuget.exe.

PREREQUISITES: If your project does not have a nuget.exe inside folder ~\App_Data\Sitefinity\Export, you must download it from https://dist.nuget.org/index.html and place it inside the folder.

Perform the following:

  1. Open Command Prompt (cmd.exe).
  2. Navigate to your project’s folder Export.
    This is the project from which you have created the add-on.
    The folder path is ~\App_Data\Sitefinity\Export.
  3. In the command line, execute nuget pack <add-on name>/<add-on name>.nuspec
    For example, if your add-on is named ABC, enter the following:

    generate nuget

RESULT: After the generation, a .nupkg file appears in folder ~\App_Data\Sitefinity\Export. This is the NuGet package that you are going to distribute. 

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?