Add dotnet target framework badge#11949
Draft
LuxologyGG wants to merge 1 commit into
Draft
Conversation
Implement a platform-support badge that reads .NET target frameworks from the NuGet registration API for a given package. Supports stable (v) and prerelease (vpre) version selection, following the pipe-separated display pattern used by other platform-support badges.
Contributor
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements a new platform-support badge for .NET target frameworks, addressing #6934.
Badge routes
/dotnet/v/:packageName— target frameworks for the latest stable NuGet package version/dotnet/vpre/:packageName— target frameworks for the latest version including prereleasesExample
Shows supported target frameworks (e.g.
net48 | net8.0 | netstandard2.0) from the NuGet registration API dependency groups.Implementation notes
registration5-gz-semver2API.NETFramework4.8→net48) for consistent displaytargetFrameworkasall, per NuGet API semanticsTests
services/dotnet/dotnet.service.spec.jsservices/dotnet/dotnet.tester.jsCloses #6934