Humanizer icon indicating copy to clipboard operation
Humanizer copied to clipboard

How to stop all cultures from being deployed to output directory?

Open hosseinitabar opened this issue 2 years ago • 2 comments

Hello guys.

First I want to thank you for this amazing library.

Second I noticed that after using it, I see a lot of Humanizer.resource dll files in a lot of directories in my output directory.

Here's a picture:

Capture


Capture2

My question is, how can I stop these resource files from cluttering my output?

I'm using ASP.NET Core.

Thank you so much.

hosseinitabar avatar Jul 18 '21 13:07 hosseinitabar

The Humanizer NuGet package alwayas pulls all languages. If you only need specific languages, you can use that specific NuGet package only: https://github.com/Humanizr/Humanizer/blob/5c3b1341d8fafaea4a9997fae03191548f9c8656/readme.md#specify-lang

hangy avatar Jul 18 '21 13:07 hangy

As @hangy notes, you can install only a specific language. But if you don't need that either, you can use the default only by referencing Humanizer.Core. Read more in chapter Install in readme.md:

You can install Humanizer as a nuget package:

English only: Humanizer.Core

All languages: Humanizer

@hosseinitabar, please close this issue if this answered your issue.

Gakk avatar Oct 13 '21 07:10 Gakk

Install Humanizer.Core only

hazzik avatar Feb 27 '24 05:02 hazzik