An Alternative to nuget install-package

Recently I was trying out Aeron on .NET while using Linux.

One of the steps required me to extract the contents of the Aeron.Driver NuGet package. But there is no nuget executable for Linux. To get it working I would need to install Mono, but I didn’t want to do that.

I know the package is just a ZIP file, so I could extract it with unzip.

NuGet packages are zip archives
NuGet packages are zip archives

But I wanted to see if the dotnet CLI could do it for me.

There is a way -

dotnet add package Aeron.Driver --package-directory out

This will add the package to the project you are working too.

Hope this helps someone else.

comments powered by Disqus

Related