问题描述
我遇到了一个新问题,这是在为我的应用程序编写 IPC 时出现的.
I'm facing a new problem, that occured while coding my IPC for my app.
在 UWP 之前,我能够成功地使用指令 using System.IO.MemoryMappedFiles;
.现在我不能使用 using System.IO.MemoryMappedFiles;
而我需要它.
Before UWP I was able to use the directive using System.IO.MemoryMappedFiles;
sucessfully. Now I can't use using System.IO.MemoryMappedFiles;
and I need it.
每个人都面临同样的问题吗?如果是,你是如何解决的?
Is everyone facing the same issue? If yes, how do you solved it?
我的应用不再编译.
我已经尝试重新导入 System.Core.dll 作为参考和 DllImport,但都没有成功.
I already tried to reimport the System.Core.dll as a reference and with DllImport, neither worked.
推荐答案
直接进程间通信在通用应用中不可用.
Direct inter-process communication is not available in Universal apps.
您可以使用应用服务或LaunchUriForResultsAsync 以执行跨多个应用的任务.
You can use App Services or LaunchUriForResultsAsync to perform tasks that span multiple apps.
这篇关于缺少 MemoryMappedFiles 的 C# UWP Windows 10 进程间通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!