I started a new project with WinUI in UWP. I thought that starting processes with Process.Start doesn't work or is not supported because of security reasons, but when I started the following code snippet it started working somehow.
The question is now, why does it work, or is are there any restrictions e.g. that I cannot deploy the .exe that is included in my project to the Microsoft Store?
public sealed partial class MainPage : Page
{
public MainPage()
{
this.InitializeComponent();
}
private async void ButtonBase_OnClick(object sender, RoutedEventArgs e)
{
Process.Start(@"Tools\example.exe", "--help");
}
}
Exectuable included in project (Build Action = None and Copy to Output Directory = Copy if newer):