DEV Community

Discussion on: What I've Learned So Far Building Coravel (Open Source .NET Core Tooling) - Part 1

Collapse
 
jeikabu profile image
jeikabu

Nuget leaves a lot to be desired. The more time I spend with it the more bafflement I excavate.

Collapse
 
jamesmh profile image
James Hickey

NuGet is great - but yes, when compared to tooling like npm or composer etc. it's not as robust as you would think.

The new "dotnet" tools are much easier to work with, and .NET Core is making features that used to be difficult much easier (although that's nothing to do with NuGet).

One of the coolest things (I find) is the ability to create a .NET Core Razor library that lets you build a UI (a whole app - if you really wanted!) and pack it as a NuGet package.

Apps that use this package would "automatically" get the proper routes working out-of-the-box. It's pretty easy to include client-side files (images, js, CSS, etc.) as part of the NuGet project's build too.

All that to say that the tooling around .NET Core is awesome. But NuGet, on its own... ya, it's missing some well-needed features.

Collapse
 
jeikabu profile image
jeikabu

I haven't looked into .NET Core Razor yet. Posts about it keep popping up so I should get around to it one of these days.

And I definitely agree about dotnet. I get the feeling we're still in a transitionary period with respect to tooling in the .net ecosystem. dotnet commoditizes some of the "black box" that was Visual Studio, but they haven't really closed the loop on packaging. There's a fair amount of confusion surrounding dotnet vs nuget.exe, using a nuspec file vs newer PackageReference format, etc.