I build an app like that one:
protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args)
{
string[] cmdargs = Environment.GetCommandLineArgs();
... Map arguments to variables ...
... Do stuff ...
}
I'm using the framework dependend publishing without Click-Once.
I tested that app with a debug profile that contains two cmd args and it works perfectly. But if i'm trying to execute it with MyApp.exe arg1 arg2, the app starts inside the cmd but it looks, like it doesn't do anything.
Maybe i missed anything?