Packaging an Add-on
Before deploying your Add-on, it first needs to be assembled into a redistributable package which can be then installed into any Sana installation.
To do this, just publish the add-on project to some directory and with the help of the previously imported "msbuild.targets" file, the add-on package will be assembled from the source project. The easiest way to do this is to use the .NET Core CLI (assuming that the current working directory is the SDK solution root):
dotnet publish ".\Addons\Sana.Extensions.CustomHeadingContentBlock" -c Release -o ".\publish"
As a result, the add-on will be packaged into the file .\publish\CustomHeadingContentBlock.1.0.0.sanapkg
.
Note
If you encounter any error during packaging process, please refer to this Troubleshooting. Additionally, please clean the project before building to avoid potential issues.
Tip
For more information, related to the structure of the package, please refer to this link
What's next?
Continue with deploying your Add-on.