API: NuGet Packages (show dependencyGroups without inner elements) #12281

Open
opened 2025-11-02 10:04:20 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @roctinus on GitHub (Jan 2, 2024).

Feature Description

Any *.nupkg has *.nuspec, In this file we have xml element package.metadata.dependencies[].group without inner objects but with attribute targetFramework. I'd like to see a list of targetFramework on the site and in the IDE even if it doesn't have stacked data.

I updated two files templates/package/content/nuget.tmpl and modules/packages/nuget/metadata.go
see archive with files gitea-update.zip

Example view:
dep-list1

Screenshots

dep-list0
dep-list2)

Originally created by @roctinus on GitHub (Jan 2, 2024). ### Feature Description Any `*.nupkg` has `*.nuspec`, In this file we have xml element `package`.`metadata`.`dependencies[]`.`group` without inner objects but with attribute `targetFramework`. I'd like to see a list of targetFramework on the site and in the IDE even if it doesn't have stacked data. I updated two files `templates/package/content/nuget.tmpl` and `modules/packages/nuget/metadata.go` see archive with files [gitea-update.zip](https://github.com/go-gitea/gitea/files/13813112/gitea-update.zip) **Example view:** ![dep-list1](https://github.com/go-gitea/gitea/assets/155478473/ccd919bf-4fcd-40c2-905b-90bbea253476) ### Screenshots ![dep-list0](https://github.com/go-gitea/gitea/assets/155478473/f515da2d-bde1-4e42-ae94-7cfc7fceda58) ![dep-list2](https://github.com/go-gitea/gitea/assets/155478473/7471d540-9bfe-4cef-ab2a-797e7bc64b4a))
GiteaMirror added the topic/packagestopic/apitype/proposal labels 2025-11-02 10:04:20 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12281