本文介绍了[UWP] [XAML]如何通过Windows服务启动UWP应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! HI 我创建了一个Windows服务,我打开了一个UWP应用程序,当我运行代码时它工作正常。但是当我安装它并通过cmd提示启动服务时,服务启动并且代码也在运行(通过将内容写入txt文件进行检查)但我的UWP应用程序无法打开。 以下是代码 -  流程=新流程()                 {                     StartInfo = new ProcessStartInfo(@"panasonicdigitalsignage:")                     {                         WindowStyle = ProcessWindowStyle.Maximized,                         WorkingDirectory = Path.GetDirectoryName(@"panasonicdigitalsignage:")                     }¥b $ b                }; b                的Process.Start(); UWP的限制是什么? sandeep chauhan 解决方案 HII created a windows service from where I open an UWP app, its working fine when I running through code. But when I install it and started service through cmd prompt, Service is started and code is also running(checked by write something into a txt file) but my UWP app doesn't open.Here is the code -  Process process = new Process()                {                    StartInfo = new ProcessStartInfo(@"panasonicdigitalsignage:")                    {                        WindowStyle = ProcessWindowStyle.Maximized,                        WorkingDirectory = Path.GetDirectoryName(@"panasonicdigitalsignage:")                    }                };                process.Start();Any limitation in UWP for same ?sandeep chauhan 解决方案 这篇关于[UWP] [XAML]如何通过Windows服务启动UWP应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-18 23:54