windows.services 中不存在命名空间“store”
Namespace `store` does not exist in windows.services
我正在尝试通过桌面桥从 WPF 应用程序访问 StoreRequestHelper
class。我已按照此处的说明进行操作:https://blogs.windows.com/buildingapps/2017/01/25/calling-windows-10-apis-desktop-application/#JP6H2BjHQoLxE5GS.97 and I am able to successfully call other UWP methods such as Windows.System.Launcher.LaunchUriAsync(uri)
. I've also downloaded the sample project here,它使用了我正在寻找的程序集。据我所知,我有所有正确的参考资料,但我仍然收到此错误。有人可以提供帮助吗?
这是我的参考与示例项目参考。
我所遵循的指示是错误的。我按照此处的说明进行操作:https://docs.microsoft.com/en-us/windows/uwp/porting/desktop-to-uwp-enhance which seems to somehow cause an issue. I removed all references and re-added them from the other article (https://blogs.windows.com/buildingapps/2017/01/25/calling-windows-10-apis-desktop-application/#JP6H2BjHQoLxE5GS.97),这似乎可以解决所有问题。
接受的答案中的 link 都没有为我解决问题。添加对 Windows.Services.Store.StoraContract.winmd
的引用就成功了。
我不完全确定这是否是正确的方法,但我是根据 https://docs.microsoft.com/en-us/uwp/api/windows.services.store, and it seems to work fine. The exact location of the file would depend on the version you're targeting; I used the one at C:\Program Files (x86)\Windows Kits\References.0.17763.0\Windows.Services.Store.StoreContract.0.0.0
. I otherwise followed the instructions at https://docs.microsoft.com/en-us/windows/uwp/porting/desktop-to-uwp-enhance 的 Microsoft 文档中提供的 .dll 名称找到的,包括 "Copy Local" 的设置] 为 false 的引用。
我正在尝试通过桌面桥从 WPF 应用程序访问 StoreRequestHelper
class。我已按照此处的说明进行操作:https://blogs.windows.com/buildingapps/2017/01/25/calling-windows-10-apis-desktop-application/#JP6H2BjHQoLxE5GS.97 and I am able to successfully call other UWP methods such as Windows.System.Launcher.LaunchUriAsync(uri)
. I've also downloaded the sample project here,它使用了我正在寻找的程序集。据我所知,我有所有正确的参考资料,但我仍然收到此错误。有人可以提供帮助吗?
这是我的参考与示例项目参考。
我所遵循的指示是错误的。我按照此处的说明进行操作:https://docs.microsoft.com/en-us/windows/uwp/porting/desktop-to-uwp-enhance which seems to somehow cause an issue. I removed all references and re-added them from the other article (https://blogs.windows.com/buildingapps/2017/01/25/calling-windows-10-apis-desktop-application/#JP6H2BjHQoLxE5GS.97),这似乎可以解决所有问题。
接受的答案中的 link 都没有为我解决问题。添加对 Windows.Services.Store.StoraContract.winmd
的引用就成功了。
我不完全确定这是否是正确的方法,但我是根据 https://docs.microsoft.com/en-us/uwp/api/windows.services.store, and it seems to work fine. The exact location of the file would depend on the version you're targeting; I used the one at C:\Program Files (x86)\Windows Kits\References.0.17763.0\Windows.Services.Store.StoreContract.0.0.0
. I otherwise followed the instructions at https://docs.microsoft.com/en-us/windows/uwp/porting/desktop-to-uwp-enhance 的 Microsoft 文档中提供的 .dll 名称找到的,包括 "Copy Local" 的设置] 为 false 的引用。