2017-11-25 141 views
0

我有UWP應用程序,我需要在其中包含零售模式體驗。Windows :: System :: Profile命名空間中缺少RetailInfo類

根據Microsoft docs我需要在RetailInfo實用工具類,它是在Windows 10 SDK

我安裝了Windows.System.Profile命名空間的 部分使用

IsDemoModeEnabled財產帶有所有Windows 10 SDK的Visual Studio 2017 v 15.4.4。

在Windows.System.Profile(C#項目)和Windows :: System :: Profile名稱空間(C++/CX項目)中都沒有RetailInfo類。

我應該安裝什麼來獲取Windows :: System :: Profile中的RetailInfo類?

+1

檢查合同信息[文檔中](https://docs.microsoft.com/en-us/uwp/api/Windows.System.Profile.RetailInfo)。您需要將參考添加到桌面擴展或移動擴展。 –

+0

嗨,雷蒙德!謝謝。我添加了更多關於如何添加引用和作爲答案提交的細節。親切的問候,朱莉婭 –

回答

0

參考 - >添加引用 - >通用Windows - >擴展 - > Windows Mobile擴展UWP(版本10.0.10240.0)做了竅門。

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

+0

其實雷蒙德陳分享你的情況下的方向。您能否在您的答案中澄清合同信息https://docs.microsoft.com/zh-cn/uwp/extension-sdks/,然後將其標記爲使其他成員可以清楚瞭解它? –

+0

嗨,巴里。我在答案中增加了更多細節,希望現在更清楚:)親切的問候 –

相關問題