Stride.HostBuilder
Nobody has claimed this yet.
- 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 asHostedService.
What kind of options/settings are expected/wanted?
- Basic things like
UseAssetPath.DIAddWindowingUseRenderer(/*renderer type*/)etc. endless usecases (extension methods r welcome)
What would the (pseudo) code look like?
Like MAUI configuring. You hasCorewhere 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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