【发布时间】:2019-05-10 02:02:21
【问题描述】:
我正在尝试从我的后台任务中启动 FullTrustProcess。为此我打电话给await FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync();,但它告诉我FullTrustProcessLauncher does not exist in this context。我曾尝试将Windows Desktop Extensions for the UWP 和Windows.ApplicationModel.FullTrustAppContract 引用添加到我的后台任务,但是我无法编译它以发布(除非我禁用.Net 本机工具链)。然后我得到的错误是:Internal compiler error: An item with the same key has already been added.
我该如何解决这个问题?我的后台任务需要以某种方式启动 WPF 组件。是否有解决方法,例如在没有窗口的情况下启动 UWP 前台应用程序?还是我的导入/权限错误?请注意,我似乎只需要添加其中一个引用,但两者都不起作用。
【问题讨论】:
标签: c# .net visual-studio uwp desktop-bridge