简体   繁体   中英

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

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM