Skip to content

Humanizer.Core package does not install on Xamarin #520

Closed
@jnm2

Description

@jnm2

I'm using Visual Studio 2015/NPM 3.3.0.167. When I install Humanizer.Core in a 4.5.2 project, it adds dependencies on these packages:

System.Diagnostics.Debug
System.Collections
System.Globalization
System.Linq
System.Reflection
System.Reflection.Extensions
System.Resources.ResourceManager
System.Runtime
System.Runtime.Extensions
System.Text.RegularExpressions

Previous releases of Humanizer did not do this. While these packages do not show up in references and build output, they are now in every project's packages.config and pulled by the build server. They also clutter the NuGet Package Manager interface.

Is there anything that can be done about this? 1.37.7's behavior was awesome.

Beyond being an annoyance, it causes an actual issue. It installs v4.0.0 of each package into the .NET 4.5.2 project, upon which NuGet immediately notifies you that each package is out of date. When you try to upgrade these .NET 5 packages, NuGet fails:

Could not install package 'System.Runtime 4.0.20'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5.2', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

So if we use Humanizer v2, we are currently stuck with ten incorrect packages that are out of date and not upgradable, adding unwanted noise and erroneous alarms to NuGet package management for the consuming projects.

I'm not knowledgeable enough to be sure, but I'm guessing the problem is the targetFramework="dotnet" on the dependency group being wide enough to include net.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions