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:
Create a new basic project.
Modify the BasicCameraController Start method to access Game.LaunchParameters
You will see the key value pairs when targetting net framework
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.
A workaround for this issue is to manually parse the args[] through main and cache anything you need. LaunchParameters has no setter so unfortunately you can't use it.
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:
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.