stride3d / stride3d/stride

Net5.0 game builds do not use Game.LaunchParameters (Command line arguments)

Open
#1,019 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Release Type: 4.0 Official Release

Version: 4.0.1.1.1400

Platform(s): Windows

Describe the bug
When targetting net5.0-windows, the game no longer produces launch parameters through Game.LaunchParameters. They are available when targetting net framework.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new basic project.
  2. Modify the BasicCameraController Start method to access Game.LaunchParameters
  3. You will see the key value pairs when targetting net framework
  4. You will NOT see the key value pairs when targetting net5.0-windows

Expected behavior
I would expect command line arguments to be available in any target.

I would upload a repo but this is faster to reproduce through the launcher using the steps above and I verified issue exist with a brand new clean project.

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 with the BasicCameraController Start method and inspect how Game.LaunchParameters is populated for net framework versus net5.0-windows targets. Reproduce the issue in a new basic project using the Stride launcher, then confirm that command-line key-value pairs are available for both targets.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.