简体   繁体   English

限制对Xamarin UWP应用程序的桌面支持

[英]Restrict Desktop support for Xamarin UWP application

Is there a way to restrict the support for Desktop/PCs for the Xamarin UWP app published in Windows store. 有没有一种方法可以限制Windows商店中发布的Xamarin UWP应用对台式机/ PC的支持。 ie, can we publish the Xamarin UWP app in Microsoft store which will list the app only in mobiles and Tablets and not list them in Desktop/PC devices? 即,我们可以在Microsoft商店中发布Xamarin UWP应用程序,该应用程序仅在手机和平​​板电脑上列出该应用程序,而不在台式机/ PC设备上列出它们吗?

Here is an answer to restrict mobile support, just adjust it as necessary to restrict it to only support mobile 这是限制移动设备支持的答案,只需根据需要进行调整以将其限制为仅支持移动设备

https://stackoverflow.com/a/38096834/3183946 https://stackoverflow.com/a/38096834/3183946

Does adding the below dependency will allow the app to be deployed in tablet like Surface tab.? 添加以下依赖项是否可以将应用程序部署在平板电脑(如Surface选项卡)中? <TargetDeviceFamily Name="Windows.Mobile" MinVersion="10.0.x.0" MaxVersionTested="10.0.y.0"/>

在此处输入图片说明

From Device Family official document, PCs and tablets run the desktop OS, which is based on the desktop device family. 根据Device Family官方文档,PC和平板电脑将运行基于台式机设备家族的台式机操作系统。 Phones run the mobile OS, which is based on the mobile device family. 手机运行基于移动设备系列的移动操作系统。 So, if you only add Windows.Mobile in the Dependencies . 因此,如果仅在Dependencies添加Windows.Mobile It will not support Surface tab. 它不支持Surface选项卡。

Can we publish the Xamarin UWP app in microsoft store which will list the app only in mobiles and Tablets and not list them in Desktop/PC devices.? 我们可以在微软商店中发布Xamarin UWP应用程序吗?它将仅在手机和平​​板电脑中列出该应用程序,而不会在台式机/ PC设备中列出它们。

If you uncheck Windows 10 Desktop option in the window store package configuration, and your app will not list in Desktop/PC and tablets devices. 如果取消选中窗口存储包配置中的Windows 10 Desktop选项,则您的应用程序不会在桌面/ PC和平板电脑设备中列出。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM