UWP 完全信任 DotNet 核心

UWP FullTrust DotNetCore

获取 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!

参数不应以“/”开头,至少对于 .NET Core 应用而言不应如此,如完整的 Trust Launcher 示例中所述: https://stefanwick.com/2018/04/06/uwp-with-desktop-extension-part-2/

这是一种误导