Install issue Aspose PDf .net on Ubuntu 20.04

Installed dotnet core sdk and nuget.

nuget gives me this.
Attempting to resolve dependency ‘System.Security.Permissions (≥ 4.5.0)’.
The ‘System.Security.Permissions 4.5.0’ package requires NuGet client version ‘2.12’ or above, but the current NuGet version is ‘2.8.7.0’.

Tried upgrading nuget, get this:
Could not load file or assembly ‘System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies.

Was successful a few months ago. Not sure what changed.

@jonnya

Could you please share the .NET Framework and API versions in which you are trying to set the environment? We will further proceed to assist you accordingly.

Ok
jon@fastspan14:~$ nuget
NuGet Version: 2.8.7.0
usage: NuGet [args] [options]
Type 'NuGet help ’ for help on a specific command.

jon@fastspan14:~$ dotnet --info
.NET SDK (reflecting any global.json):
Version: 6.0.301
Commit: 43f9b18481

Runtime Environment:
OS Name: ubuntu
OS Version: 20.04
OS Platform: Linux
RID: ubuntu.20.04-x64
Base Path: /home/jon/.dotnet/sdk/6.0.301/

Host (useful for support):
Version: 6.0.6
Commit: 7cca709db2

.NET SDKs installed:
2.1.818 [/home/jon/.dotnet/sdk]
6.0.301 [/home/jon/.dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.All 2.1.30 [/home/jon/.dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.30 [/home/jon/.dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.6 [/home/jon/.dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.30 [/home/jon/.dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.6 [/home/jon/.dotnet/shared/Microsoft.NETCore.App]

@jonnya

Is it Aspose.PDF for .NET 22.6 that you are trying to install in above environment?

I can’t get past nuget versioning

Tried upgrading but get the problem

Could not load file or assembly ‘System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies.

current version from apt get

jon@fastspan14:~/rml$ nuget install aspose.pdf
Attempting to resolve dependency ‘System.Security.Permissions (≥ 4.5.0)’.
The ‘System.Security.Permissions 4.5.0’ package requires NuGet client version ‘2.12’ or above, but the current NuGet version is ‘2.8.7.0’.

@jonnya

It looks like the issue is specifically related to the NuGet Version in Ubuntu 20.04. You may please try to update the extension by going into the extension manager in VS. Also, you can check in the project directory and find for nuget.exe file. Then manually download the latest version of nuget.exe and replace it in that folder.

The newest Ubuntu version throws the http transport errors

@jonnya

We are afraid that we cannot further comment on the issue as it is not specifically related to Aspose.PDF API. You can however please check related discussions on other sites to see why NuGet Version is not getting updated at your end. In case you are facing some issues particularly related to Aspose.PDF, please feel free to let us know.