-
Notifications
You must be signed in to change notification settings - Fork 3
Producing NuGet Packages (v1)
This documentation is specifically for version 1. For v2 see here.
DnnPackager supports producing one NuGet deployment package per DotNetNuke module / extension project in your solution. It also supports producing a single NuGet deployment package containing all of the DotNetNuke modules / extensions in your solution.
In order to have NuGet
deployment packages produced for each DotNetNuke module in your solution, you need to:
- Ensure
DnnPackager
NuGet package is added to your module's project. - Ensure
OctoPack
NuGet package is added to your module's project. - Ensure the msbuild property named
CreateDeploymentNugetPackages
is set to true. i.e if invoking msbuild.exe you would pass in/p:CreateDeploymentNugetPackages=true
- Ensure you have updated your module manifest with sensible values, and not left it empty or with default unreplaced tokens in.
If you have done all of this, but you are not seeing appropriate NuGet packages produced for your modules, then please raise an issue.
The NuGet deployment package produced will have the same version number as taken from your modules manifest. However you can augment this in 2 ways.
The first way is you can:-
- Set the msbuild property named
BuildVersionNumber
. i.e/p:BuildVersionNumber=12345
The version number in your dnn manifest file, appended with .BuildVersionNumber
, must equal a valid NuGet package version number.
For example valid combinations would be (Manifest + BuildVersionNumber = NuGet Package Version Number)
-
1.0.0
+12345
=1.0.0.12345
-
2.0.1
+0001
=1.0.0.0001
Invalid combinations might be:
-
1.0.0
+1.1.1.a' =
1.0.0.1.1.1.a`
The second way is you can:
- Set the msbuild property named
OctoPackPackageVersion
. i.e /OctoPackPackageVersion=1.0.1
This will set the NuGet package version number directly.
In order to have a single NuGet
deployment package produced containing all of your DotNetNuke module zips in your solution, you need to:
- Ensure
DnnPackager
NuGet package is added to your module's project. - Ensure the msbuild property named
CreateSolutionDeploymentPackage
is set to true. i.e if invoking msbuild.exe you would pass inp:CreateSolutionDeploymentPackage=true
- Ensure you have updated your modules manifests with sensible values, and not left it empty or with default unreplaced tokens in.
If you have done all of this, but you are not seeing appropriate NuGet packages produced for your modules, then please raise an issue.