I need to download nuget packages from ubuntu to Windows, for offline download, which means all dependencies for a package should be download as well.
To use nuget:
sudo apt-get install mono-completewget https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
Then download with mono nuget.exe install PACKAGE -version=VERSION
.
The above command doesn't always download all dependencies and I don't understand why.
For example I needed System.ServiceModel.Http
package with version 4.8.1 for .net standard so I executed the command
mono nuget.exe install System.ServiceModel.Http -version=4.8.1
and I got the errors:
Unable to find package System.Security.Cryptography.Cng with version (>=4.7.0)
Unable to find package System.Windows.Extensions
Detected package downgrade: System.ServiceModel.Primitives from 4.8.1 to 4.5.3. > Reference the package directly from the project to start different version
and more errors of type Detected package downgrade
...
There is no download of Visual Studio for ubuntu so I can't create a solution and download nuget packages and then take the packages from nuget cache.
How can I download the wanted package with all dependencies for the wanted framework in one time, and also the packages that prevent downgrade in others?
Thank you!