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 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. 

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?