【问题标题】:UWP FullTrust DotNetCoreUWP 完全信任 DotNet 核心
【发布时间】:2019-07-26 05:20:11
【问题描述】:

在将 dotnetcore2.1 控制台应用程序作为具有完全信任启动器的 UWP 包的一部分运行时遇到问题,代码:

<Extensions>
    <desktop:Extension Category="windows.fullTrustProcess" 
        Executable="NBXplorer\NBXplorer.exe">
        <desktop:FullTrustProcess>
        <desktop:ParameterGroup GroupId="Parameters" Parameters="/--datadir 
        nbxplorer /--chains btc /--network testnet" />
      </desktop:FullTrustProcess>
  </desktop:Extension>
</Extensions>

if(ApiInformation.IsApiContractPresent
("Windows.ApplicationModel.FullTrustAppContract", 1, 0))
{
    await 
    FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync
    ("Parameters");
}

DotNetCore 控制台启动,输出以下控制台日志: 指定 --help 以获得可用选项和命令的列表 net core

然后进程被杀死......当这个DotNetCore应用程序独立启动时真的不明白

DotNetCore 应用程序和 dll 依赖项的层次结构结构是:UWPAppPackage->NBXplorer->Files

这方面真的需要帮助,我不能等到年底 MSFT 使用 DotNetCore3.0 发布可工作的 fullTrust!

【问题讨论】:

  • @IvanIčin 要么我没有说得最好,要么你误解了它。 Full Trust Process 和 dotNetCore 现在存在,并且该应用程序与 DotBetCore2.1 兼容,我提到 3.0 是因为我读过 VS2019 将与 DotNetCore3.0 有更好的兼容性,但我们不知道这是否是罪魁祸首,因此发布。无论哪种方式,您的评论都没有建设性。
  • @Stefan Wick MSFT,你有什么想法吗?

标签: xaml uwp .net-core desktop-bridge


【解决方案1】:

参数不应以“/”开头,至少对于 .NETCore 应用程序不应如此,如以下 fullTrustLauncher 示例中所述: https://stefanwick.com/2018/04/06/uwp-with-desktop-extension-part-2/

这是误导

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-01-20
    • 2021-01-24
    • 2017-07-11
    • 2013-10-09
    • 2016-11-22
    • 1970-01-01
    • 2019-09-25
    • 2020-11-30
    相关资源
    最近更新 更多