Quantcast
Channel: MSDN Blogs
Viewing all articles
Browse latest Browse all 35736

Make your app available only to the intended device families

$
0
0

Set TargetDeviceFamily to “Windows.Desktop” if you intend for the app only to be available on PC devices

By default when you create a new UWP project, Visual Studio will set the target device families that the app can be deployed to Universal. The implication of this is that the app can be deployed to all device families supported by the Universal Windows Platform. Today this includes Desktop (Windows PCs and Tablets), Team (Surface Hub), Holographic (HoloLens), Mobile (Windows Phone)and Xbox. This is the setting in the manifest file (view source to edit in Visual Studio):

<TargetDeviceFamily Name="Windows.Universal" …/>

When the app is published to the Microsoft Store. This is what the Store listing will look like:

Store listing with multiple device families

Note the Available on section. It indicates this app is available on HoloLens, PC, Mobile device and Hub.

Most developers will not want to say their app supports all of these device types until they’ve added the necessarily adaptive code for each device type and tested the app on these devices. This is standard software development practice show to provide a good experience to the user.

Change your target device family as follows to target only the PC if that is device you are are developing for.

<TargetDeviceFamily Name="Windows.Desktop" …/>

This change will help you avoid negative feedback from users that attempt to use your app developed for a PC on another device family for which you did not intend for the app.


Viewing all articles
Browse latest Browse all 35736

Trending Articles