我正在尝试编写一个简单的主菜单应用程序,用户可以点击一个按钮,然后它将启动一个已经安装在Windows10IOT中的应用程序。(以“iotcoreMediaPlayer”应用程序为例)
private void Button_Click(object sender, RoutedEventArgs e)
{
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = @"C:\Data\USERS\DefaultAccount\AppData\Local\DevelopmentFiles\IoTCoreMediaPlayerVS.Debug_ARM.User\entrypoint\IoTCoreMediaPlayer.exe";
startInfo.Arguments = f;
Process.Start(startInfo);
}
但是,这不起作用,给了我以下错误:
System.NotImplementedException: 'The method or operation is not implemented.'
在下面:
using Media_Center;
namespace System.Diagnostics
{
internal class Process
{
internal static void Start(string v)
{
throw new NotImplementedException();
}
internal static void Start(ProcessStartInfo startInfo)
{
throw new NotImplementedException(); <===
}
}
}
有人能告诉我我做错了什么吗?
谢谢