| id | installation |
|---|---|
| title | Install Humanizer |
| sidebar_position | 2 |
| diataxis | how-to |
| persona | new developer |
import CodeBlock from '@theme/CodeBlock'; import quickStart from '!!raw-loader!../_examples/quick-start/Program.cs';
Install the Humanizer package in the project that produces user-facing text. Select the documentation version that matches the package version in your application before copying commands or API links.
Install Humanizer 4 from NuGet:
dotnet add package Humanizer --version 4.0.0Then add using Humanizer; and run this verified program:
{quickStart}
The project must target a framework supported by the selected package.
Humanizer 4 ships net11.0, net10.0, net8.0, net48, and
netstandard2.0 assets.
Run:
dotnet list packageThe project should list Humanizer at the version you selected. In centrally managed repositories, put the version in Directory.Packages.props and omit --version from the project command.
Do not assume that every framework capable of consuming netstandard2.0 is supported. For the current release line, .NET Framework support is explicitly .NET Framework 4.8.
Humanizer 4 is consolidated into the Humanizer package. Releases through
3.0.10 use a metapackage over Humanizer.Core and locale packages. See
package selection before replacing package references
during an upgrade.