找不到模块(VSTS Build with Windows 10 SDK for Creators 更新)

Module could not be found (VSTS Build with Windows 10 SDK for Creators update )

我们正在 VSTS 上为 UWP 应用创建 appxbundle。构建成功,但是在运行时我们在访问以下方法时遇到异常:

public static Task<DeviceManagementClient> CreateAsync(IDeviceTwin deviceTwin, IDeviceManagementRequestHandler hostAppHandler);

异常:

    The specified module could not be found. 
    (Exception from HRESULT: 0x8007007E) at System.StubHelpers.StubHelpers.GetWinRTFactoryObject(IntPtr pCPCMD) 
at SystemConfiguratorProxyClient.SCProxyClient..ctor() at Microsoft.Devices.Management.SystemConfiguratorProxy..ctor() 
at Microsoft.Devices.Management.DeviceManagementClient.<CreateAsync>d__7.MoveNext() --- 

构建机器: Windows Server 2012 R2 with Windows 10 SDK Fall creators update

运行时间: 具有 Windows 10 RS3 build

的 Dragonboard

我们遵循 UWP 构建模板来创建应用程序包。

我们缺少什么?

问题是我们有一个在调试版本中构建的自定义 Nuget 包,因此它在发布构建配置中不起作用。谢谢!