简体   繁体   English

UWP 应用中的 Chromium

[英]Chromium in UWP Apps

Hi all,大家好,

I know this question(Chromium working on UWP) has been asked before(2015/2016), wanted to see if there is an update on this我知道这个问题(Chromium working on UWP)之前已经被问过(2015/2016),想看看是否有更新

I am trying to use the CEF3 build in UWP app and getting the following error in CefInitialize while running the app CefInitialize(main_args, settings, app.get(), sandbox_info);我正在尝试在 UWP 应用程序中使用 CEF3 构建,并在运行应用程序 CefInitialize(main_args, settings, app.get(), sandbox_info); 时在 CefInitialize 中收到以下错误[settings.multi_threaded_message_loop = false;] [settings.multi_threaded_message_loop = false;]

FATAL:platform_channel_pair_win.cc(44)] : Access is denied.致命:platform_channel_pair_win.cc(44)]:访问被拒绝。 (0x5) [0718/135937.758:FATAL:platform_channel_pair_win.cc(60)] : The system cannot find the file specified. (0x5) [0718/135937.758:FATAL:platform_channel_pair_win.cc(60)] : 系统找不到指定的文件。 (0x2) (0x2)

There are also multiple warnings还有多个警告

Msg:[minkernel\\mrt\\mrm\\src\\mrmmin\\resourcemap.cpp] onecoreuap\\base\\mrt\\runtime\\src\\cresourceindexinternal.cpp(1479)\\MrmCoreR.dll!00007FFE923B3890: (caller: 00007FFE923ACEC7) ReturnHr(252) tid(7a5c) 80073B1F ResourceMap Not Found. Msg:[minkernel\\mrt\\mrm\\src\\mrmmin\\resourcemap.cpp] onecoreuap\\base\\mrt\\runtime\\src\\cresourceindexinternal.cpp(1479)\\MrmCoreR.dll!00007FFE923B3890: (调用者: 00007FFE923ACEC7) ReturnHr(252) tid (7a5c) 80073B1F 未找到资源映射。

Tried using CEfSharp.尝试使用 CEfSharp。 Used the OffScreen Nuget package in the UWP app and I am getting build error (The same code works in Console Application)在 UWP 应用程序中使用了 OffScreen Nuget 包,我收到构建错误(相同的代码在控制台应用程序中工作)

Xaml Internal Error error WMC9999: Cannot find type System.ServiceModel.ServiceHost in module System.ServiceModel.dll. Xaml 内部错误错误 WMC9999:在模块 System.ServiceModel.dll 中找不到类型 System.ServiceModel.ServiceHost。

Been stuck on this for long now, any help would be appreciated长期以来一直坚持这一点,任何帮助将不胜感激

Short answer is yes - since October 2020 you can package uwp pwa's to run with chromium edge.简短的回答是肯定的 - 自202010 月起,您可以打包 uwp pwa 以使用铬边运行。

The easiest way is to go to https://pwabuilder.com nd build your pwa there.最简单的方法是访问https://pwabuilder.com并在那里构建您的 pwa。

According to Microsoft you can edit the manifest later with VS 2017 (vs0219 pwa uwp templates had been removed).根据微软的说法,您可以稍后使用 VS 2017 编辑清单(vs0219 pwa uwp 模板已被删除)。

Though i must say- i was not able to run a local chromium based pwa via VS2017虽然我必须说-我无法通过 VS2017 运行本地基于铬的 pwa

best of luck祝你好运

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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