Humanizr / Humanizer

Humanizer meets all your .NET needs for manipulating and displaying strings, enums, dates, times, timespans, numbers and quantities
Other
8.52k stars 947 forks source link

The Enum Humanizer Conversion to its Description not working on .Net 7 Project #1511

Closed Sudheesh-TalentzQ closed 1 month ago

Sudheesh-TalentzQ commented 1 month ago

I tried with both new .Net7 and .Net8 Projects by creating an enum and giving it a description, while it works perfectly on .Net8 it is throwing error in .Net7 Project

Screenshot (27)

Is there any way to fix this issue in .Net7

SimonCropp commented 1 month ago

@Sudheesh-TalentzQ can u try the current beta version?

Sudheesh-TalentzQ commented 1 month ago

@SimonCropp I'm using the latest version.

Sudheesh-TalentzQ commented 1 month ago

Sorry i Accidently Closed the issue

SimonCropp commented 1 month ago

can u share a minimal repro

Sudheesh-TalentzQ commented 1 month ago

Humanizer.zip

check this sample project

SimonCropp commented 1 month ago

looks like a problem with the nuspec. i have fixed it here https://github.com/Humanizr/Humanizer/pull/1513

in the short term an explicit reference should fix it

    <PackageReference Include="System.Collections.Immutable" Version="8.0.0" />
Sudheesh-TalentzQ commented 1 month ago

Thank you @SimonCropp , That fixed it