Can you call an external application from a Windows 10 Universal application? c#

▼魔方 西西 提交于 2019-12-10 18:09:27

问题


I have been working on a Minecraft server wrapper for the past week. I was looking forward to making a windows 10 universal app, but in my learning and testing I discovered that System.Diagnostics.Process is not supported in windows 8 store apps. When trying to add the code to my Win 10 dev machine in a 10 project I am being told that it cant be resolved.

Is there going to be a way to launch an external process and capture the output into a textbox with Win10 Universal apps or am I out of luck?


回答1:


Your target app will need to support app services to do this. It isn't possible to launch and control arbitrary apps. If the target app is designed as an app service then you can launch and communicate it with Launcher.LaunchUriForResultsAsync

For more on app services see the Build session App-to-App Communication: Building a Web of Apps



来源:https://stackoverflow.com/questions/30491903/can-you-call-an-external-application-from-a-windows-10-universal-application-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!