News for hackers. Stuff that matters.
Re:The Case for C# and .NET by Kuinox on Monday July 25, 2022 @04:03AM (#32221710)
> that the official repo can only "unlist" packages, not delete them or that the publish times sometimes have horrible delays

It's to avoid the npm left-pad problem. nuget.org packages are idempotent.

For the publish times, I found out you can cut it in more than half if you tell nuget to ignore caches.

Re:The Case for C# and .NET by sandreas on Monday July 25, 2022 @04:34AM (#32221885)
I know... but sometimes it is a bad thing for indie hackers testing around :-)

Draft releases would be awesome.

Re:The Case for C# and .NET by manigandham on Monday July 25, 2022 @05:02AM (#32222085)
You don't have to use Nuget.org, it's just the public community version of a Nuget package repo.

You can use your own private repos like MyGet[1] or Github Packages [2].

1. https://www.myget.org/ 2. https://docs.github.com/en/packages/working-with-a-github-pa...

Re:The Case for C# and .NET by sandreas on Monday July 25, 2022 @06:34AM (#32222638)
Yeah I know all this, you can even use BaGet[1] symbol server to cache or manage private dependencies in an enterprise network. That is not the point... I think that the most used tool / platform should provide more flexibility for non-enterprise or less expierienced developers.

No offense, I like nuget, but I recently made a typo and checked in 0.0.23 instead of 0.0.2. Now, everytime I add a dependency that is < 0.0.23 to a project, that has not been synchronized / validated yet (the other problem I described), it automatically takes the best match, which is 0.0.23 assuming to be the newest package, even if unlisted.

I also burned a 1.0.0 because of a failing script like that... not really bad, but annoying...

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

Re:The Case for C# and .NET by Kuinox on Monday July 25, 2022 @09:20AM (#32223851)
FYI Nuget also work with folders.

Drop nupkg in a folder, use it as a source, you now have a "feed".

Re:The Case for C# and .NET by metaltyphoon on Monday July 25, 2022 @08:36AM (#32223466)
Why not just setup a local feed?
Re:The Case for C# and .NET by diarrhea on Monday July 25, 2022 @01:03PM (#32227380)
Idempotent, in which way? Do you perhaps mean immutable?
Re:The Case for C# and .NET by Kuinox on Wednesday August 03, 2022 @06:47PM (#32337400)
Yes, sorry, I meant immutable, not idempotent.