什么是 uwphost.dll?

What is uwphost.dll?

我正在尝试为 Windows 商店认证我的 UWP 应用程序,但我收到一条消息,指出 uwphost.dll 中的几种方法都不是与商店不兼容。

API ExecuteAssembly in uwphost.dll is not supported for this application type. GammaFour.InvestmentManagement.Client.exe calls this API.
API DllGetActivationFactory in uwphost.dll is not supported for this application type. GammaFour.InvestmentManagement.Client.exe has an export that forwards to this API.

这很令人不安,因为我没有明确添加这个库,也不知道如何解决这个问题。有什么想法吗?

UWPHost.dll 是一个帮助程序库,Visual Studio 在关闭 .NET 本机编译的情况下(例如为了调试)添加到您的包中。

在为商店提交创建包时,请确保打开 .NET 本机编译(发布版本默认打开)。这应该可以解决您的问题。