Most supply chain attacks on package ecosystems follow the same pattern: a malicious version gets published, and people pick it up within hours because their tooling always grabs the latest version. The window between "published" and "discovered and removed" is where the damage happens. NuGet now has an opt-in feature that targets exactly that window: minimum package publish age . Note: this feature requires NuGet 8.0, .NET SDK 11.0.100 or Visual Studio 18.12. What does it do? You configure a waiting period per package source. When dotnet package add or dotnet package update needs to pick the latest version for you, it skips versions that are younger than that period. That gives the community (and the package owner) time to spot a bad release before you adopt it. Because the age is set per source, you can delay packages from nuget.org without slowing down packages from your internal feed. Remark: the delay doesn't guarantee a package is safe. It ...
In the previous part I defined ScalarResource and the OpenApiAnnotation , and services can opt in with WithOpenApi() . All data, no behaviour. Now I make Scalar actually start, find the documents, and tell the dashboard what it found. Note: this post is part of a series about the demos from my session “Bending Aspire to your will” . AddScalar: the behaviour lives in the extension method public static IResourceBuilder<ScalarResource> AddScalar( this IDistributedApplicationBuilder builder, string name = "scalar", int? port = null) { ArgumentNullException.ThrowIfNull(builder); var existing = builder.Resources.OfType<ScalarResource>().SingleOrDefault(); if (existing is not null) { return builder.CreateResourceBuilder(existing); } builder.Services.TryAddEventingSubscriber<ScalarEndpointLogger>(); var scalar = new ScalarResource(name); return builder.AddResource(scalar) .WithImage("scalara...