This tool is intended to pack and validating extensions for Inedo products. Extensions are .NET class library projects that target one or more compatible frameworks (currently net452 and net5.0), and are packaged into a ProGet universal package.
Install from NuGet using dotnet tool
:
dotnet tool install [--global] Inedo.ExtensionPackager
In a development environment, you may want to use the --global
flag so the tool will be available from any path. See Install and use a .NET global tool using the .NET CLI
in Microsoft's documentation for more information about using dotnet tools.
The Inedo.ExtensionPackager tool registers the inedoxpack
command, and can be invoked with:
dotnet inedoxpack
To package an Inedo extension, create a class library that targets one or more supported frameworks, and reference the Inedo.SDK
NuGet package. See an existing repository such as InedoCore
or DotNet for examples of how to create an extension. Once you are ready to build, it's recommended to do a dotnet publish
command to make sure all
dependencies are available:
dotnet publish -f net452 -c Release -o bin\pub\net452
dotnet publish -f net5.0 -c Release -o bin\pub\net5.0
dotnet inedoxpack pack bin\pub
This will create <ExtensionName>.upack
in the current directory.
Set the INEDOXPACK_OUTDIR
environment variable to define a default output directory for packages. If this variable is not set, packages will be created in the current directory unless
an absolute path is specified.