Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NuGet Server for .NET Core

The NuGet.Server package is used to create a ASP.NET MVC NuGet server and it works just fine. There is another package NuGet.Server.Core that is expected to do the same when hosted within a ASP.NET Core (perhaps 1.0 or 1.1?).

The first one creates 'Packages' folder right beneath the main folder used as a package repository.
No such things happens after installing the Core version. I tried both root and a dedicated folder. Googling a bit, I found no info about installing the package and integrating it in a ASP.NET Core app.

Has anyone succeeded in installing the Core version? Also, there's another version NuGet.Server.V2 which depends on NuGet.Server.Core, however it requires .NET Framework 4.6.1. This makes me think that NuGet.Server.Core is not targetting .NET Core at all.

If so, the name must be somewhat misleading, I guess...

like image 373
Alexander Christov Avatar asked Mar 30 '18 05:03

Alexander Christov


People also ask

Does .NET core use NuGet?

NET (including . NET Core), the Microsoft-supported mechanism for sharing code is NuGet, which defines how packages for . NET are created, hosted, and consumed, and provides the tools for each of those roles.

What is a NuGet server?

NuGet. Server is a package provided by the . NET Foundation that creates an ASP.NET application that can host a package feed on any server that runs IIS. Simply said, NuGet. Server makes a folder on the server available through HTTP(S) (specifically OData).


2 Answers

Yes, this is the answer:

enter image description here

No .NET Core whatsoever! Just .NET Framework 4.6.1. Not a big discovery but a warning to all devs who, like me, were (and, more importantly, will be!) misled by 'Core' in the package's name.

like image 145
Alexander Christov Avatar answered Sep 27 '22 21:09

Alexander Christov


Here's a 3rd party option (free)

https://github.com/loic-sharma/BaGet

like image 27
Bjarte Haram Avatar answered Sep 27 '22 21:09

Bjarte Haram