# Stride `dotnet new` Templates Three NuGet packages ship Stride project templates for the `dotnet new` engine: | Package | Contents | Distribution | |---|---|---| | **`Stride.Templates.Games`** | `stride-game` (blank NewGame starter) | Bundled with GameStudio installer | | **`Stride.Templates.Games.Starters`** | `stride-fps`, `stride-platformer2d`, `stride-topdownrpg`, `stride-thirdpersonplatformer`, `stride-vrsandbox` | nuget.org (CLI install / future template store) | | **`Stride.Templates.Samples`** | 18 feature demos (tutorials, games, graphics, physics, UI, particles, input, audio) | nuget.org (CLI install / future template store) | GameStudio's "New Project" dialog and CLI `dotnet new` consume the same packages — there is one template flow, not two. ## End-user usage (CLI) ```bash dotnet new install Stride.Templates.Games dotnet new stride-game -n MyGame cd MyGame dotnet run --project MyGame.Windows ``` Genre starters and feature demos require their own package install: ```bash # Opinionated game-genre starter (FPS, Platformer2D, TopDownRPG, third-person, VR) dotnet new install Stride.Templates.Games.Starters dotnet new stride-fps -n MyShooter cd MyShooter && dotnet run --project MyShooter.Windows # Feature demos / tutorials (18 templates: stride-csharp-beginner / -intermediate, # stride-jumpyjet, stride-spaceescape, stride-animatedmodel, stride-particles, # stride-bepuphysics, stride-physics, stride-ui-menu, ...) dotnet new install Stride.Templates.Samples dotnet new stride-jumpyjet -n MyJumpyJet cd MyJumpyJet && dotnet run --project MyJumpyJet.Windows ``` `dotnet new -l` after the installs lists every available stride-* short name. Common parameters (template-dependent): | Parameter | Values | Meaning | |---|---|---| | `-n` / `--name` | string | Project name; substitutes `MyTemplate` literal throughout | | `--platforms` | `host` / `windows` / `linux` / `macos` / `ios` / `android` (pipe-joined for multiple) | Per-platform exec projects to include. `host` auto-detects current OS. | | `--HDR` | `true` / `false` | HDR rendering pipeline (requires `graphicsProfile >= 10.0`) | | `--graphicsProfile` | `9.0` / `10.0` / `11.0` | Shader feature level | | `--orientation` | `Default` / `LandscapeLeft` / `LandscapeRight` / `Portrait` | Mobile display orientation | `dotnet new