Repository navigation
Plugins 1/12: companion packages - #3535
Merged
Merged
Conversation
Contributor
|
🤖 Draft PR — automatic CI is skipped to save runner minutes.
|
xen2
marked this pull request as ready for review
October 10, 2026 07:49
xen2
force-pushed
the
feature/plugins/1-companions
branch
2 times, most recently
from
October 12, 2026 23:48
ffff919 to
df3cefc
Compare
Member
Author
|
@Kryptos-FR Fixes are folded into the commits of the PR they belong to. Unchecked items are not addressed in this stack; most are follow-ups, a few are open questions. #3535 Companion packages
#3536 Editor discovery
#3538 Asset file extensions
#3539 Bepu
#3540 Video
#3541 Bullet
#3542 SpriteStudio and Voxels
#3543 Audio
#3544 Plugin authoring
#3545 Assembly reload
#3546 Particles and #3547 UI
CI fixes found along the way
Game Studio manual test (2026-10-14/15)A manual pass in Game Studio (upgrade, Add dependency, previews, plugin authoring, reload, removing a plugin) found these; all fixed in the PR they belong to:
Also planned
|
xen2
force-pushed
the
feature/plugins/1-companions
branch
3 times, most recently
from
October 13, 2026 10:43
3e34253 to
7e5ef4c
Compare
This was referenced Oct 13, 2026
Member
Author
xen2
force-pushed
the
feature/plugins/1-companions
branch
from
October 14, 2026 09:20
7e5ef4c to
8dfcfb9
Compare
…anifest (a companion project states its kind, StridePackageKind; the runtime lists its companion projects or packages, whose id, version and kind are read from them at build and pack time; Replaces drops a companion declared elsewhere)
…, dev-redirect or NuGet restore); error on unloadable assets at compile
…ion mismatch, own version, missing kind, direct reference, project reference, replacement by the game)
…ts project references and lists their manifests (CompanionManifests) for the asset compiler, so a game references an in-solution plugin's runtime project only; the declaring project restores a companion that was never restored, so its manifest and packed sdpkg always carry the id (the pack-time resolution target is gone)
…set type deriving from that plugin's); one that comes with a companion's restore closure loads as a companion, without the direct-reference warning
… dependency) gets back the companions the session loaded for its packages
…registers the native libraries a RID build flattens next to the assembly (managed DLLs skipped)
…s its own NuGet restore of over 1 GB, and a full run filled a CI runner's disk); STRIDE_KEEP_TEST_DIRS keeps them
…x action, also used by the Linux screenshot job), so its consumers compile assets that need a graphics device; the consumers' runtime content checks run off Windows too
…deWriteAssetBuildManifest with its path (references, Assets companions, the test SDK's wait for the Game build): that project's Build could return while another request was still writing it (a hook of ResolveProjectReferences, which that Build found completed); StrideWriteAssetBuildManifest depends on ResolveProjectReferences, so it can be requested on its own
…he test SDK's own globals of the build that builds it (StrideCompanionBuildRemoveProperties, which the test SDK fills), as a project reference would be: on iOS the whole engine graph was built a second time from the test suites' companion builds
xen2
force-pushed
the
feature/plugins/1-companions
branch
from
October 14, 2026 16:17
8dfcfb9 to
b12cd43
Compare
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.
The plugin stack
A Stride plugin becomes a runtime package plus up to two companion packages that only the tools load:
.Assets(asset types, compilers, templates; loaded by the asset compiler and Game Studio) and.Editor(Game Studio parts, with an optional.Editor.Wpffor views).A game references the runtime only. Game Studio finds its features through declarations instead of hand-written lists, and the optional engine features move into this shape, so the editor and the asset compiler no longer reference them.
The user documentation is
docs/build/plugins.md(#3544).To see a complete plugin, create one from the
stride-plugintemplate (dotnet new stride-plugin, or Add plugin in Game Studio), added in #3544.AssetFileExtension, package upgrader for plugin assets,MoveTypesStride.BepuPhysics.Assets,Stride.Assets.VHACDStride.Video.Assets,Stride.Video.EditorStride.Physics.Assets,Stride.Physics.EditorStride.SpriteStudio.Assets,Stride.SpriteStudio.Editor,Stride.Voxels.EditorStride.Audio.Assets,Stride.Audio.Editor; project and code upgradestride-plugintemplate, Add plugin, docs, toolkit-specific Editor packages, package render featuresStride.Particles.Editor,Stride.Audio.Editor.WpfStride.UI.Assets,Stride.UI.Editor,Stride.UI.Editor.WpfLater, not in this stack: limiting Game Studio's lists (Add asset, Add component, type pickers) to what the edited project can use, and a plugin browser.
This PR adds companion packages: how a plugin declares them, how they are packed, and how the asset compiler and Game Studio load them.
No engine package uses them yet; PR 4 and later move the optional engine features into this shape.
How a plugin declares its companions
<StridePackageKind>Assets</StridePackageKind>(orEditor).<StrideCompanionPackage Include="MyPlugin.Assets" Version="1.2.0" Kind="Assets" />..sdpkg.Replaces="MyPlugin.Assets"lets a game use its own companion instead of a plugin's.Changes
Assetscompanion loads at its declared version, from the session, the local dev store, or a NuGet restore. Companions of companions load too.AssetAssembliesis nowHostAssembliesin the.sdpkg(the old name still loads).Impact on games and plugins
Testing
CompanionPackageTests): restore from a feed, missing companion, version and kind checks, direct reference warning, companion of a companion, plugin projects in the game's solution, replacement by the game.