Edit the .nuspec file
After Sitefinity CMS automatically creates the .nuspec file, you should manually edit it to prepare it for NuGet package generation.
- Open the
.nuspecfile and add the following metadata:-
IDof the add-on
When you export structure and data from Sitefinity CMS, theIDof the package must match the target folder for the addon files in the package.
For more information about the recommended way to create your packageID, see MSDN » Choose a unique package identifier and setting the version number.EXAMPLE: If the
IDof the package isExampleCorporation.MyAddon, the target set in the.nuspecfile for the folder, which contains the files exported from Sitefinity CMS, must becontent\App_Data\Sitefinity\AddOns\ExampleCorporation.MyAddon. -
Authorsof the add-on -
Ownersof the add-on -
Descriptionof the add-on -
Versionof the add-on -
Any other metadata that you require
-
- List any dependencies of the add-on.
For more information, see Manage add-on dependencies. - Include all custom functionality (custom DLLs and other files) that you want to distribute.
You do this by referencing it in the.nuspecfile.
For more information, see Export custom functionality. - Save and close the
.nuspecfile.
For more information about editing the .nuspec file, see Nuspec Reference.