Humanizer
Humanizer copied to clipboard
Humanizer is incompatible with Net 5.0
info : Adding PackageReference for package 'Humanizer' into project 'C:\Users\DotNetDependencies\DotNetDependencies.csproj'. info : Restoring packages for C:\Users\DotNetDependencies\DotNetDependencies.csproj... error: NU1100: Unable to resolve 'Humanizer (>= 2.11.10)' for 'net5.0'. error: Package 'Humanizer' is incompatible with 'all' frameworks in project 'C:\Users\DotNetDependencies\DotNetDependencies.csproj'.
I have not found a version of Humanizer i can to work. Please advise.
Can you share a little bit more about the project? Are you able to install any other dependencies from NuGet.org?
This very simple repo works (with .NET 5): https://dotnetfiddle.net/ZJVI3f
same problem
PS C:\Users\cd_li\GitWorks\test\myApp> dotnet add package Humanizer --version 2.11.10
正在确定要还原的项目…
Writing C:\Users\cd_li\AppData\Local\Temp\tmpB0F4.tmp
info : 正在将包“Humanizer”的 PackageReference 添加到项目“C:\Users\cd_li\GitWorks\test\myApp\myApp.csproj”。
info : 正在还原 C:\Users\cd_li\GitWorks\test\myApp\myApp.csproj 的包...
error: NU1100: 无法解析 net5.0 的“Humanizer (>= 2.11.10)”。
error: 包“Humanizer”与项目“C:\Users\cd_li\GitWorks\test\myApp\myApp.csproj”中的“all”框架不兼容。
https://docs.microsoft.com/en-us/learn/modules/dotnet-dependencies/3-exercise-dependency
PS C:\Users\cd_li\GitWorks\test\DotNetDependencies> dotnet new console
The template "Console Application" was created successfully.
Processing post-creation actions...
Running 'dotnet restore' on C:\Users\cd_li\GitWorks\test\DotNetDependencies\DotNetDependencies.csproj...
Determining projects to restore...
Restored C:\Users\cd_li\GitWorks\test\DotNetDependencies\DotNetDependencies.csproj (in 49 ms).
Restore succeeded.
PS C:\Users\cd_li\GitWorks\test\DotNetDependencies> dotnet run
Hello World!
PS C:\Users\cd_li\GitWorks\test\DotNetDependencies> dotnet add package Humanizer --version 2.11.10
Determining projects to restore...
Writing C:\Users\cd_li\AppData\Local\Temp\tmpC975.tmp
info : Adding PackageReference for package 'Humanizer' into project 'C:\Users\cd_li\GitWorks\test\DotNetDependencies\DotNetDependencies.csproj'.
info : Restoring packages for C:\Users\cd_li\GitWorks\test\DotNetDependencies\DotNetDependencies.csproj...
error: NU1100: Unable to resolve 'Humanizer (>= 2.11.10)' for 'net5.0'.
error: Package 'Humanizer' is incompatible with 'all' frameworks in project 'C:\Users\cd_li\GitWorks\test\DotNetDependencies\DotNetDependencies.csproj'.
PS C:\Users\cd_li\GitWorks\test\DotNetDependencies>
for those who might come here from Microsoft docs,
I solved the same issue by deleting the NuGet config file in C:\Users\<user>\AppData\Roaming\NuGet
folder
Found my solution in the StackOverflow issue here: https://stackoverflow.com/questions/54785951/unable-to-install-packages-using-dotnet-add-package