Game Studio: plugin browser (find and add plugins from NuGet)

Abierto
#3,587 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
10/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
csharp

Línea de trabajo

This is a design proposal with open questions and no discussion yet, so it is not a starting point for a first contribution. Read the existing Add dependency flow in Game Studio and the stride-plugin template the proposal relies on, and see how PackageReference for Stride.Engine is written. Done means the open questions are answered in the thread and a design is agreed with maintainers.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

area-GameStudio area-Plugins enhancement

With the plugin system (#3535 to #3547), a plugin is a NuGet package with optional companion packages (Assets, Editor) that Game Studio loads. But a user has no proper way to find a plugin and add it: Add dependency lists the packages the session already knows, and anything else means editing the .csproj by hand.

Related: #1197 (community marketplace). Tracked in #3581.

Proposal: a plugin browser in Game Studio, like NuGet in Visual Studio
  • Source: a NuGet search over the feeds configured for the solution (resolved the way restore sees them), query tags:stride-plugin. The stride-plugin template already sets that tag. Stride's own optional packages (Bepu, Video, Particles, UI...) get the tag too.
  • Compatibility: read from the plugin's dependency on Stride.Engine (no new metadata). Show only the versions built for the game's Stride version, and say so when there is none.
  • Views: Browse (search, name, description, author, icon, downloads, project link) and Installed (version, update available, remove), for each game project (the Game library, not the executable).
  • Install: add the PackageReference shaped like the Stride.Engine one, restore, and load the companions into the session (this already works: a package that joins the session brings its asset types, templates and editor plugin). Remove: drop the reference, and say a restart is needed.
  • Updates: a new plugin version shows as "update available". When the game upgrades Stride, the upgrade proposes plugin versions built for the new Stride version, or warns when there is none.
  • CLI: the same logic in a shared service, so the stride CLI can offer it too (stride add plugin <id>?).
  • UI toolkit: a toolkit-neutral view model, with the view in the WPF layer, so the WPF to Avalonia port only redoes the view.
  • Trust: show the source feed, and whether the package comes from the stride3d organization. No gating.
Versioning (already decided)
  • A plugin's Stride.Engine dependency packs as [4.5.0, ), with no upper bound.
  • Compatible = same major.minor as that lower bound; patch versions are compatible. On a newer minor version, the plugin is "not built for this version" (a minor version can break API).
  • Warnings: a log line on every load, and a visible notice once per game, plugin version and Stride version. No build warning.
Open questions
  • Stride's own packages in the same list, or a separate "Stride features" tab?
  • Offline: cached search results, or local feeds only?
  • Should the Launcher show plugins too?
Lenguaje dominante
C#
Estrellas
8k
Forks
1.2k
Merge medio
1 d 1 h
PR fusionados (30 d)
321

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de stride3d/stride

Todos los issues de stride3d/stride

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.