【发布时间】: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