stride3d / stride3d/stride

Stride.HostBuilder

Open
#1,487 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C#
Stars
7.8k
Forks
1.2k
Avg merge
2d 17h
Merged PRs (30d)
49

Description

Is your feature request related to a problem? Please describe.
Create HostBuilder for stride core.
With this feature in Program.cs you will have configuration pipeline of how stride will perform.
Its cool bc you can run background services if you need. run multiple instances of core. Configure things in fluent style.

Describe the solution you'd like
Look at Microsoft.Hosting. Made simmilar thing or use just it with some tweaks.

Here are some questions that can aid in the description of the feature request:

What are the usecases?

  • Server builds. Easier using of codefirst approach. Easier configuring app from Program.cs. Game logic can be embeded as HostedService.

What kind of options/settings are expected/wanted?

  • Basic things like UseAssetPath. DI AddWindowing UseRenderer(/*renderer type*/) etc. endless usecases (extension methods r welcome)

What would the (pseudo) code look like?
Like MAUI configuring. You has Core where you configure app. Then you build it and return host.
In platform specific project you run that host
Is the feature affecting behaviour in the editor?

  • no

Is there a component or datastructure?

  • architecture

what kind of documentation is needed or needs to be updated?

  • written new docs

Should there be an example project?

  • no. docs will be enough

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing Microsoft.Hosting and the existing Program.cs and platform-specific startup paths mentioned in the request. Define the HostBuilder architecture and its configuration options, including asset paths, dependency injection, windowing, rendering, and hosted services; done means the core can build and run the configured host with accompanying documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend, developer-experience
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.