In .NET Framework I can simply do Process.Start(filename);
butin .NET Core I get this exception:
System.ComponentModel.Win32Exception: 'The specified executable is not a valid application for this OS platform.'
How can I start testfile.txt
with my default app?
Thank you!
Open it like such:
new Process
{
StartInfo = new ProcessStartInfo(filename)
{
UseShellExecute = true
}
}.Start();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With