Skip to content

Packing the package

build.ps1 packs the package into build.out/. It runs in Windows PowerShell or PowerShell 7 (pwsh on macOS and Linux).

Terminal window
pwsh ./build.ps1

The version is the <Version> in Our.Umbraco.TagHelpers/Our.Umbraco.TagHelpers.csproj. Pass -Version to override it:

Terminal window
pwsh ./build.ps1 -Version 2.1.0-rc1

Pack it with its own version, then run the demo site against it:

Terminal window
pwsh ./build.ps1 -Version 2.1.0-local.1
dotnet run --project Our.Umbraco.TagHelpers.TestSite -p:TagHelpersSource=Package -p:TagHelpersPackageVersion=2.1.0-local.1

Use a new version for each new build of the package, because NuGet caches packages by version.