HoloLens 中的 QR 扫描 - DLL 错误

QR Scanning in HoloLens - DLL errors

我正在尝试从 HoloLens 中实现二维码 reader,使用 Mike Taulty 的解决方案 (https://mtaulty.com/2016/12/28/windows-10-uwp-qr-code-scanning-with-zxing-and-hololens/)。但是,我在 Unity 中构建项目时遇到问题,因为我收到构建错误:"Assets\Placeholder.cs(20,9): error CS0103: The name 'MediaFrameQrProcessing' does not exist in the current context",这似乎暗示 DLL 无法正常工作?我的项目中已经有一个同名的 DLL,我认为这个 DLL 会解决这个问题,但它似乎没有。

我是 运行 Unity 2018.4.1 和 Visual Studio 2019。我正在他的 GitHub 存储库 (https://github.com/mtaulty/QrCodes) 之上构建。

这是抛出构建错误的块。 MediaFrameQrProcessing 找不到

public void OnScan()
    {
        this.textMesh.text = "scanning for 30s";
        #if !UNITY_EDITOR
        MediaFrameQrProcessing.Wrappers.ZXingQrCodeScanner.ScanFirstCameraForQrCode(
            result =>
            {
                UnityEngine.WSA.Application.InvokeOnAppThread(() =>
            {
                  this.textMesh.text = result ?? "not found";
              },
            false);
            },
            TimeSpan.FromSeconds(30));
        #endif
    }

预期:项目构建 w/o 事件

实际结果:Assets\Placeholder.cs(20,9): error CS0103: The name 'MediaFrameQrProcessing' does not exist in the current context 构建错误。这应该被 DLL

覆盖

导入设置的屏幕截图:

建议尝试用unity2017搭建。我使用 unity2017.4.31f1 在存储库中构建了 unity 项目,它似乎工作正常。

更新:

我用2018.4.3新建了一个工程,做了一些简单的测试,使用了这样的Import Setting后就没有报这个错了