【问题标题】:RetailInfo class is missing in Windows::System::Profile namespaceWindows::System::Profile 命名空间中缺少 RetailInfo 类
【发布时间】:2018-05-09 11:29:42
【问题描述】:

我有 UWP 应用,我需要在其中包含零售模式体验。

根据Microsoft docs我需要使用

RetailInfo 实用程序类中的 IsDemoModeEnabled 属性,即 Windows 10 SDK 中 Windows.System.Profile 命名空间的一部分

我安装了带有所有 Windows 10 SDK 的 Visual Studio 2017 v 15.4.4。

在 Windows.System.Profile(C# 项目)和 Windows::System::Profile 命名空间(C++/CX 项目)中都没有 RetailInfo 类。

我应该安装什么才能在 Windows::System::Profile 中获得 RetailInfo 类?

【问题讨论】:

  • 查看合约信息in the documentation。您需要添加对桌面扩展或移动扩展的引用。
  • 嗨,雷蒙德!谢谢你。我添加了有关如何添加参考并作为答案提交的更多详细信息。亲切的问候,朱莉娅

标签: c++ windows uwp visual-studio-2017 windows-10-universal


【解决方案1】:

References -> Add Reference -> Universal Windows -> Extensions -> Windows Mobile Extensions for UWP(版本 10.0.10240.0) 成功了。

How to add reference to Windows Mobile Extensions for UWP in project

【讨论】:

  • 其实Raymond Chen分享了你的案例方向。您能否在您的回答中澄清合同信息docs.microsoft.com/en-us/uwp/extension-sdks,然后将其标记,以便其他成员清楚?
  • 嗨,巴里。我在答案中添加了更多细节,希望现在更清楚:) 亲切的问候
猜你喜欢
  • 2016-09-24
  • 1970-01-01
  • 1970-01-01
  • 2016-01-31
  • 1970-01-01
  • 1970-01-01
  • 2018-02-02
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多